This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19502] New: duplicate diagnostic for invalid template constant parameter
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2005 10:49:22 -0000
- Subject: [Bug c++/19502] New: duplicate diagnostic for invalid template constant parameter
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Since gcc 3.3.3 the compiler issues a duplicate diagnostic for the
following invalid code snippet (before we got an ICE):
=========================================
template<typename T> struct A
{
template<T> struct B;
};
A<void> a;
=========================================
bug.cc: In instantiation of 'A<void>':
bug.cc:6: instantiated from here
bug.cc:3: error: 'void' is not a valid type for a template constant parameter
bug.cc:3: error: 'void' is not a valid type for a template constant parameter
--
Summary: duplicate diagnostic for invalid template constant
parameter
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19502