[Bug c++/37962] New: [4.4 regression] ICE with (auto*) casts
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Oct 30 20:23:00 GMT 2008
The following code snippet triggers an ICE on mainline:
========================
int i = *(auto*)0;
========================
bug.cc:1: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have template_type_parm in lookup_conversions,
at cp/search.c:2459
Please submit a full bug report, [etc.]
A slightly different version triggers a similar ICE in a different place:
========================
struct A* p = (auto*)0;
========================
bug.cc:1: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have template_type_parm in lookup_base, at
cp/search.c:214
Please submit a full bug report, [etc.]
The bugs appeared with the patches for the new 'auto' semantics.
--
Summary: [4.4 regression] ICE with (auto*) casts
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, 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=37962
More information about the Gcc-bugs
mailing list