From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,c5f29131eec99ba0,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-03-09 08:53:49 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!wn13feed!worldnet.att.net!216.196.106.140!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail NNTP-Posting-Date: Tue, 09 Mar 2004 10:53:48 -0600 From: Albert Chin-A-Young Subject: Problems compiling kdepim-3.2.0 on Tru64 UNIX 5.1 Newsgroups: comp.unix.tru64 Organization: The Written Word User-Agent: tin/1.5.17-20030301 ("Bubbles") (UNIX) (Linux/2.4.22 (i686)) Message-ID: Date: Tue, 09 Mar 2004 10:53:48 -0600 NNTP-Posting-Host: 67.95.107.103 X-Trace: sv3-K54/zG+bF1D+DCbrnPCGe/JaDDTHtrZSUuuQCgR5RSvPsSvVd9GONj+bd2stU0yrp4WzscwYgEllJoK!LPmt25YNGnCELm2CG3slZs2GcyeS4TSttxTUSWOesBkj2CWqTzLc7Tt8RQmp96/rWfSV1E1Ea0KP!dQINnCOXWAk8xiXTlOMx X-Complaints-To: abuse@speakeasy.net X-DMCA-Complaints-To: abuse@speakeasy.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.unix.tru64:11276 $ 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