[Bug c++/17267] Reuse of template parameter name not diagnosed

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 7 23:09:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list