Bug report(?): order of declaration with namespaces
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Fri Mar 12 04:41:00 GMT 1999
> 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
More information about the Gcc-bugs
mailing list