https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78924
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- Btw. clang++ (3.8.1) shows: pr78924.cpp:12:48: error: out-of-line definition of 'g' does not match any declaration in 'A<T>' template<class B> template<class C> void A<B>::g(C) { ^ pr78924.cpp:14:5: error: variable has incomplete type 'C' (aka 'void') C c; // the template parameter C, not A's C ^ 2 errors generated.