[Bug c++/26543] New: friend class declaration inside class scope ignored

2006-03-03 Thread pato101 at gmail dot com
Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pato101 at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26543

[Bug c++/26543] friend class declaration inside class scope ignored

2006-03-03 Thread pato101 at gmail dot com
--- Comment #3 from pato101 at gmail dot com 2006-03-03 14:26 --- (In reply to comment #1) > This is invalid C++. Use -ffriend-injection to make it work. > Wait, why is it invalid? At Bjarne Stroustrup's "C++ programming language" third edition, chapter 11, sect

[Bug c++/26543] friend class declaration inside class scope ignored

2006-03-03 Thread pato101 at gmail dot com
--- Comment #5 from pato101 at gmail dot com 2006-03-03 14:39 --- (In reply to comment #2) > (In reply to comment #1) > > Use -ffriend-injection to make it work. > > Note -ffriend-injection will not work in this case as -ffriend-injection is > only for friend fun