[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 functions and not for frien

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

2006-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-03 14:29 --- (In reply to comment #3) > (In reply to comment #1) > > This is invalid C++. Use -ffriend-injection to make it work. > > > Wait, why is it invalid? This was valid pre-standard C++, ARM C++ but is no longer valid.

[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, section "11.5 Friends" at it

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

2006-03-03 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-03 13:44 --- (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 functions and not for friend classes. Anyways this is al

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

2006-03-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-03-03 11:42 --- This is invalid C++. Use -ffriend-injection to make it work. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---