This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]