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++/24629] Can't use template argument as friend


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |DUPLICATE

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-02-14 23:07:25 UTC ---
C++0x has changed the rules slightly and allows:
template<class T>
class Foo {
    friend T;
};

But GCC does not implement this new rule yet. See 47721.

*** This bug has been marked as a duplicate of bug 47721 ***


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