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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Sep 2004 23:09:08 -0000
- Subject: [Bug c++/17267] Reuse of template parameter name not diagnosed
- References: <20040901193726.17267.v.haisman@sh.cvut.cz>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-09-07 23:09 -------
The name of the inner template template parameter is (properly) ignored,
so even if we accept this it does not harm.
I can't really find any place where it would say that we have to reject
the code. 14.1/3 would probably come closest, saying that we have to
treat the second occurrence of "T" as naming a type, not a paramater name.
This is elaborated in 14.1/13. So even if there is no clear requirement
that we must reject the code, it would probably be a reasonable request,
though of low priority.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-09-07 23:09:04
date| |
Summary|Template parameter |Reuse of template parameter
|redeclaration |name not diagnosed
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17267