Bug#312362: g++-4.0: friend is ineffective in namespace

2005-06-08 Thread Philip Martin
Fumitoshi UKAI <[EMAIL PROTECTED]> writes: > Hmm, maybe this would be what the upstream auther wants. It's hard to know what upstream wants given a bug in the compiler and a bug in the code. I think ns::operator+ would work just as well as ::operator+ due to argument-dependent name lookup ("koen

Bug#312362: g++-4.0: friend is ineffective in namespace

2005-06-07 Thread Philip Martin
Fumitoshi UKAI <[EMAIL PROTECTED]> writes: > I think this is a bug of g++-4.0. No, it's a documented change in behaviour. From http://gcc.gnu.org/gcc-4.0/changes.html * Friends of classes defined outside their namespace are correctly handled: namespace N { class A; } class N::A