This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18586] New: [4.0 regression] ICE on invalid template member declaration
- 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: 21 Nov 2004 02:00:36 -0000
- Subject: [Bug c++/18586] New: [4.0 regression] ICE on invalid template member declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code snippet causes an ICE on mainline:
==================================
template<int> struct A
{
template<int N> int A<N>::i;
};
==================================
bug.cc:3: error: type 'A<N>' is not derived from type 'A<<anonymous> >'
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
According to Phil's regression hunter the regression was introduced in August:
: Search converges between 2004-08-04-trunk (#504) and 2004-08-05-trunk (#505).
--
Summary: [4.0 regression] ICE on invalid template member
declaration
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
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=18586