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(); ~~~~~~~~~~~~~~~~~~^