This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13243] New: Segfault on illegal template construct
- From: "drow at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2003 18:13:39 -0000
- Subject: [Bug c++/13243] New: Segfault on illegal template construct
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compile this:
template <int T> class foo { public: foo() { } class Z { };};
template <int I[2]> void dep7(foo<I[0]> *) { }
We segfault here:
#3 0x0811fa10 in cp_parser_fold_non_dependent_expr (expr=0x4000e348)
--
Summary: Segfault on illegal template construct
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: drow at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-pc-linux-gnu
GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13243