The following invalid testcase triggers an ICE on trunk:

===========================================
template<typename T> void foo(T, T);

template<typename T> void foo(T, int);

template void foo(int, int);
===========================================

bug.cc:5:15: error: ambiguous template specialization 'foo<>' for 'void
foo(int, int)'
bug.cc:5:27: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.5 Regression] ICE with amiguous template
                    specialization
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=42055

Reply via email to