[Bug c++/37531] New: [4.4 regression] ICE with invalid array initialization
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 15 21:20:00 GMT 2008
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
More information about the Gcc-bugs
mailing list