[Bug c++/15025] [3.4/3.5 Regression] accepts redeclaration of template as non-template

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 20 13:17:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-04-20 12:54 -------
Indeed, a regression on 3.4 and mainline w.r.t. 3.3 and previous versions. 
The code is definitely invalid. This is the shortest I can get: 
---------- 
template <int> struct X; 
struct X {}; 
---------- 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.2.3 3.3.4
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-20 12:54:42
               date|                            |
            Summary|[3.4?/3.5 Regression]       |[3.4/3.5 Regression] accepts
                   |accepts invalid code        |redeclaration of template as
                   |                            |non-template


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15025



More information about the Gcc-bugs mailing list