This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: namespace related bug
- To: Ulrich dot Lauther at mchp dot siemens dot de
- Subject: Re: namespace related bug
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sun, 1 Aug 1999 10:54:37 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <199907302044.WAA26180@gomory.mchp.siemens.de>
> I get a wrong "first declared here" message in a rather large piece
> of code. I tried to cut it down, but it is still 1903 lines after
> expanding all includes and macros.
Thanks for your bug report. The bug is still present in g++ 2.95,
although in a different form. The compiler puts the friend declaration
of Hnode into global namespace, instead of the nearest enclosing
namespace.
There is a work-around: Forward-declare Hnode in namespace turbo
before declaring it friend. This works for both compilers.
Regards,
Martin