This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug report(?): order of declaration with namespaces


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]