This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug report(?): order of declaration with namespaces
- To: igorr at ifi dot uio dot no
- Subject: Re: Bug report(?): order of declaration with namespaces
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 12 Mar 1999 13:33:04 +0100
- CC: egcs-bugs at cygnus dot com
- References: <Pine.SOL.3.96.990106182001.3983A-100000@gjallarhorn.ifi.uio.no>
> This code compiles nicely and everyone is happy. However, when I change
> the order of definition of ::tada() and Space2::tada() (just swap the 2
> functions in code), then bizarre things happen:
>
> igorr@kringsjaa10 (31):
> ~/IfiExports$ g++ hidden_func.cpp
> hidden_func.cpp: In function `void tada()':
> hidden_func.cpp:39: new declaration `void tada()'
> hidden_func.cpp:32: ambiguates old declaration `void tada()'
Thanks for your bug report. I could reproduce it with egcs-1.1.1, and
the code compiles with egcs-2.93.11, so it appears that the bug is
fixed. I don't know whether the fix is in 1.1.2.
Regards,
Martin