This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19143] New: [4.0 regression] ICE on invalid template 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: 24 Dec 2004 01:39:08 -0000
- Subject: [Bug c++/19143] New: [4.0 regression] ICE on invalid template parameter
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline:
==============================================
template<int> struct A;
template<> struct A<template> {};
==============================================
bug.cc:2: error: missing '>' to terminate the template argument list
bug.cc:2: error: template argument 1 is invalid
bug.cc:2: error: missing '>' to terminate the template argument list
bug.cc:2: error: template argument 1 is invalid
bug.cc:2: error: 'A' is not a template
bug.cc:2: error: missing '>' to terminate the template argument list
bug.cc:2: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
Alexandre, this was causes by your path for PR18757:
http://gcc.gnu.org/ml/gcc-cvs/2004-12/msg00382.html
Could you please have a look?
--
Summary: [4.0 regression] ICE on invalid template parameter
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: aoliva at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19143