This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78924] hiding of template parameter of member template


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]