1 // PR c++/28363 2 // { dg-do compile } 3 4 template<typename T, template<int> class = T> // { dg-error "invalid use of type" } 5 struct A; 6 7 typedef int I; 8 template<template<int> class = I> // { dg-error "invalid use of type" } 9 struct B; 10 11 struct S; 12 template<template<int> class = S> // { dg-error "invalid use of type" } 13 struct C; 14