This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78924] hiding of template parameter of member template
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Dec 2016 09:29:17 +0000
- Subject: [Bug c++/78924] hiding of template parameter of member template
- Auto-submitted: auto-generated
- References: <bug-78924-4@http.gcc.gnu.org/bugzilla/>
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.