This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37531] New: [4.4 regression] ICE with invalid array initialization
- 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: 15 Sep 2008 21:19:17 -0000
- Subject: [Bug c++/37531] New: [4.4 regression] ICE with invalid array initialization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline:
======================================
void foo()
{
(int[i]){ 0 };
}
======================================
bug.cc: In function 'void foo()':
bug.cc:3: error: 'i' was not declared in this scope
bug.cc:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in cp_type_readonly, at cp/typeck.c:7138
Please submit a full bug report, [etc.]
The regression was introduced between 2008-06-26 and 2008-07-05.
This might be fallout from
2008-07-02 Jason Merrill <jason@redhat.com>
* Make-lang.in (cp/typeck2.o): Add $(REAL_H) dependency.
Implement WG21 N2672, Initializer List proposed wording
[...]
--
Summary: [4.4 regression] ICE with invalid array initialization
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37531