[Bug c++/30248] regression: friend no longer declares classes

2006-12-18 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-12-18 20:25 --- (In reply to comment #3) > C++ standard §11.4 (Friends) ¶7: > > "A name nominated by a friend declaration shall be accessible in the scope of > the class containing the friend declaration. The meaning of the friend

[Bug c++/30248] regression: friend no longer declares classes

2006-12-18 Thread friedman at splode dot com
--- Comment #3 from friedman at splode dot com 2006-12-18 20:14 --- I think the -ffriend-injection option should be the default as it conforms to the ISO standard. Please reopen. C++ standard §11.4 (Friends) ¶7: "A name nominated by a friend declaration shall be accessible in the scop

[Bug c++/30248] regression: friend no longer declares classes

2006-12-18 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-18 17:46 --- This is not a bug. Friends don't interject. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/30248] regression: friend no longer declares classes

2006-12-18 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-12-18 17:07 --- ARM-style friend-injection of names into the parent namespaces has been removed since gcc-4.1, as noted in: http://gcc.gnu.org/gcc-4.1/changes.html You should add a forward declaration "class Bar;" before decla