The following invalid code snippet triggers an ICE on mainline:

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

void foo()
{
  A<0>().operator auto();
}
==========================================

bug.cc: In function 'void foo()':
bug.cc:8: internal compiler error: tree check: expected function_decl, have
template_decl in build_over_call, at cp/call.c:5123
Please submit a full bug report, [etc.]


-- 
           Summary: [4.4 regression] ICE with "operator auto"
           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=38256

Reply via email to