This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37962] New: [4.4 regression] ICE with (auto*) casts
- 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: 30 Oct 2008 20:20:53 -0000
- Subject: [Bug c++/37962] New: [4.4 regression] ICE with (auto*) casts
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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