The following invalid code snippet triggers an ICE since GCC 3.2.3:

=============================================
struct A
{
  template<typename T> operator T*();
};

int i = *A();
=============================================

bug.cc:6:12: 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:2431
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3/4.4/4.5 Regression] ICE looking up template
                    conversion operator
           Product: gcc
           Version: 4.5.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=42260

Reply via email to