https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45374
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang rejects the code in a similar way as GCC does: <source>:23:27: error: 'MyClass<6>::MyFunc' is not a member of class 'MyDerivedClass<char, 6>' return ptr->MyClass<B>::MyFunc(); ~~~~~~~~~~~~^ <source>:31:33: note: in instantiation of function template specialization 'MyTemplatedFunction<char, 6>' requested here std::cout << "Next time: " << MyTemplatedFunction<char,6>() << std::endl; ^ 1 error generated. I wonder if there is a DR report about this.