The following invalid code snippet causes an ICE in gcc 3.4.x:

==================================
template<int> struct A
{
    A<int>::~A() {}
};
==================================

bug.cc:3: error: type/value mismatch at argument 1 in template parameter list
for `template<int <anonymous> > struct A'
bug.cc:3: error:   expected a constant of type `int', got `int'
bug.cc:3: internal compiler error: in grokdeclarator, at cp/decl.c:6534
Please submit a full bug report, [etc.]

-- 
           Summary: [3.4 regression] ICE with invalid destructor declaration
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19441

Reply via email to