This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14428] New: incompatible template declarations accepted
- From: "heinlein at informatik dot uni-ulm dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2004 09:36:05 -0000
- Subject: [Bug c++/14428] New: incompatible template declarations accepted
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I don't think that the following code is correct.
GCC accepts it, however.
template <int i> struct X;
template <int* p> struct X;
--
Summary: incompatible template declarations accepted
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: heinlein at informatik dot uni-ulm dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14428