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

Reply via email to