[Bug c++/63268] Ambiguous non-specialized static template scope is accepted

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 15 10:21:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63268

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The code is valid, in a class template the injected-class-name can be used
without a template argument list, so Bass refers to the current instantiation.

In the scope of Deriv the name "Bass" is in scope and refers to "Bass<int>".

See http://stackoverflow.com/q/25549652/981959



More information about the Gcc-bugs mailing list