[Bug c++/78924] hiding of template parameter of member template
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 27 09:29:00 GMT 2016
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.
More information about the Gcc-bugs
mailing list