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++/14428] incompatible template declarations accepted


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


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