[Bug c++/14428] incompatible template declarations accepted

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 4 13:47:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-03-04 13:47 -------
Confirmed. No compiler (including mainline) detects this. It may 
be that a compiler is only require to issue an error upon use of this 
type, but gcc doesn't even say anything about this code: 
---------- 
template <int i> struct X; 
template <int* p> struct X; 
 
X<1> *x; 
---------- 
 
W. 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |2.95.3 3.2.3 3.3.3 3.4.0
                   |                            |3.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-04 13:47:25
               date|                            |


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



More information about the Gcc-bugs mailing list