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

             Bug #: 51403
           Summary: [4.7 Regression] ICE with invalid template parameter
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: reich...@gcc.gnu.org


The following invalid code snippet triggers an ICE on trunk:

================================================================
template<typename T, void, typename U> void foo(T, U, int) {}

void bar()
{
  foo(0, 0, 0);
}
================================================================

bug.cc:1:22: error: 'void' is not a valid type for a template non-type
parameter
bug.cc: In function 'void bar()':
bug.cc:5:14: internal compiler error: in unify, at cp/pt.c:16222
Please submit a full bug report, [etc.]

Reply via email to