Problems compiling kdepim-3.2.0 on Tru64 UNIX 5.1

From: Albert Chin-A-Young (china_at_foo.com)
Date: 03/09/04

  • Next message: Gary Smith: "FTP/RCP Problem"
    Date: Tue, 09 Mar 2004 10:53:48 -0600
    
    

    $ cxx -V
    Compaq C++ V6.5-040
    $ cat a.h
    namespace KMail {
      class FolderJob {
        FolderJob();
      };
    }
    $ cat b.cpp
    #include "a.h"

    namespace KMail {
      class FolderJob;
    }
    using KMail::FolderJob;

    class Foo
    {
      friend class FolderJob;
    };

    $ cxx -c b.cpp
    cxx: Error: b.cpp, line 10: "FolderJob" has already been declared in the
              current scope
      friend class FolderJob;
    ---------------^
    cxx: Info: 1 error detected in the compilation of "b.cpp".

    Is this a bug in the compiler? I've tried this against the Sun C++
    compilers, HP C++ compiler, and GCC and they don't have a problem. Only
    the Tru64 UNIX C++ and SGI compiler fail with the above error.

    -- 
    albert chin
    

  • Next message: Gary Smith: "FTP/RCP Problem"

    Relevant Pages