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++/42328] rejects valid friend


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42328

Richard Smith <richard-gccbugzilla at metafoo dot co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richard-gccbugzilla@metafoo
                   |                            |.co.uk

--- Comment #7 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> ---
(In reply to Jonathan Wakely from comment #6)
> Clang accepts the code in comment 0

Clang is cheating; it says:

<stdin>:12:27: warning: dependent nested name specifier 'freeList<T, baz>::'
for friend class declaration is not supported; turning off access control for
'baz'
      [-Wunsupported-friend]
void    freeList<T, baz>::foo();
        ~~~~~~~~~~~~~~~~~~^


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