This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/63268] Ambiguous non-specialized static template scope is accepted
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Sep 2014 10:21:01 +0000
- Subject: [Bug c++/63268] Ambiguous non-specialized static template scope is accepted
- Auto-submitted: auto-generated
- References: <bug-63268-4 at http dot gcc dot gnu dot org/bugzilla/>
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