The following testcase triggers an ICE since GCC 4.0.0:

==============================================
template<template<int> class A> int A<0>::i;
==============================================

bug.cc:1: internal compiler error: in cxx_incomplete_type_diagnostic, at
cp/typeck2.c:426
Please submit a full bug report, [etc.]

Before we issued the diagnostic
bug.cc:5: error: `::i' is not a valid declarator
which wasn't too helpful.

Posting a patch soon.


-- 
           Summary: [4.0/4.1/4.2 regression] ICE on invalid declaration with
                    template template parameter
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: reichelt at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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

Reply via email to