Bug 27720 - ICE with initialization of invalid variable
Summary: ICE with initialization of invalid variable
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.2.0
: P3 minor
Target Milestone: 4.2.0
Assignee: Not yet assigned to anyone
URL:
Keywords: error-recovery, ice-on-invalid-code, monitored
Depends on:
Blocks:
 
Reported: 2006-05-22 13:21 UTC by Volker Reichelt
Modified: 2006-10-05 21:00 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-09-03 21:39:58


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Reichelt 2006-05-22 13:21:04 UTC
The following invalid testacse triggers an ICE since at least GCC 2.95.3:

================================
struct A;
template<int> struct A {};

A a(0);
================================

bug.cc:2: error: 'A' is not a template type
bug.cc:4: internal compiler error: in store_init_value, at cp/typeck2.c:593
Please submit a full bug report, [etc.]
Comment 1 Wolfgang Bangerth 2006-05-26 14:57:24 UTC
Confirmed.
Comment 2 Volker Reichelt 2006-10-05 21:00:44 UTC
Fixed on mainline by Lee's patch for PR26938.