Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Albert Chin-A-Young <china@foo.com>
Subject: Problems compiling kdepim-3.2.0 on Tru64 UNIX 5.1
Date: Tue, 09 Mar 2004 10:53:48 -0600	[thread overview]
Message-ID: <LPOdnRqEg_sBa9DdRVn-sA@speakeasy.net> (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


                 reply	other threads:[~2004-03-09 16:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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