https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65157
Richard Smith <richard-gccbugzilla at metafoo dot co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |richard-gccbugzilla@metafoo | |.co.uk --- Comment #2 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> --- Clang is wrong; lookup for B::Create should fail because B is a dependent type, which is what happens in GCC and EDG. Adding this before 'main' crashes Clang: template<> class A<int>::B {}; A<int>::C<int> c; (Internally, Clang is marking the friend declaration as invalid, but failing to actually produce a corresponding diagnostic.) Filed as bugs.llvm.org/PR35377.