------- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-11 23:19 ------- This is fixed in 4.1.0 as what is happening before was the friend was injecting when it should not have been. This was fixed by the patch which fixed PR 7874.
-- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |7874 Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.1.0 Bug 11314 depends on bug 7874, which changed state. Bug 7874 Summary: [3.4/4.0/4.1 regression] g++ finds friend functions defined in class-definition but not declared in the enclosing namespace http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7874 What |Old Value |New Value ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11314