This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14428] incompatible template declarations accepted
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2004 13:47:27 -0000
- Subject: [Bug c++/14428] incompatible template declarations accepted
- References: <20040304093602.14428.heinlein@informatik.uni-ulm.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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