This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/28597] friend function defined inside class declaration



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-08-04 02:17 -------
    friend bool Compare( const Class& a, const Class& b );
Does not inject a function (or class).

Use the following option to get back the ARM (pre standard) behavior:
  -ffriend-injection          Inject friend functions into enclosing namespace


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28597


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]