The following invalid code snippet triggers an ICE on mainline:

====================================
template<bool> struct A;

template<int> void foo()
{
  A<__builtin_constant_p(.)> a;
}
====================================

bug.cc: In function 'void foo()':
bug.cc:5: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in
any_template_arguments_need_structural_equality_p, at cp/pt.c:13258
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with invalid template argument
           Product: gcc
           Version: 4.3.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=30534

Reply via email to