This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17267] Reuse of template parameter name not diagnosed
- 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: Tue, 10 Jun 2014 17:57:53 +0000
- Subject: [Bug c++/17267] Reuse of template parameter name not diagnosed
- Auto-submitted: auto-generated
- References: <bug-17267-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17267
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Last reconfirmed|2006-02-26 19:40:00 |2014-6-10
Known to fail| |
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
14.6.1 [temp.local]
-6- A template-parameter shall not be redeclared within its scope (including
nested scopes). A template-parameter shall not have the same name as the
template name.