--- 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
--- 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
--- 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
--- 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