Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Problems compiling kdepim-3.2.0 on Tru64 UNIX 5.1
@ 2004-03-09 16:53 Albert Chin-A-Young
  0 siblings, 0 replies; only message in thread
From: Albert Chin-A-Young @ 2004-03-09 16:53 UTC (permalink / raw)


$ 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-09 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-09 16:53 Problems compiling kdepim-3.2.0 on Tru64 UNIX 5.1 Albert Chin-A-Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox