The following valid code snippet triggers an ICE since GCC 3.1:
====================================================================
template<template <typename T, typename = T > class U> struct A
{
template<int> U<int> foo();
};
====================================================================
bug.cc:3: internal compiler error: in tsubst, at cp/pt.c:7450
Please submit a full bug report, [etc.]
This is related to PR 30044, but here we have a regression.
--
Summary: [4.1/4.2/4.3 regression] ICE with default argument in
template template parameter
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-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=30897