This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42328] rejects valid friend
- From: "richard-gccbugzilla at metafoo dot co.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Dec 2014 00:39:00 +0000
- Subject: [Bug c++/42328] rejects valid friend
- Auto-submitted: auto-generated
- References: <bug-42328-4 at http dot gcc dot gnu dot org/bugzilla/>
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();
~~~~~~~~~~~~~~~~~~^