1 // { dg-do compile { target c++11 } }
3 template<class T> class A { /* ... */ };
4 template<class T, class U = T> class B { /* ... */ };
5 template<class... Types> class C { /* ... */ };
7 template<template<class> class P> class X { /* ... */ };
8 template<template<class...> class Q> class Y { /* ... */ };
11 X<B> xB; // { dg-error "mismatch" "mismatch" }
12 // { dg-message "expected a template" "expected" { target *-*-* } 11 }
13 // { dg-error "invalid type" "invalid" { target *-*-* } 11 }
14 X<C> xC; // { dg-error "mismatch" "mismatch" }
15 // { dg-message "expected a template" "expected" { target *-*-* } 14 }
16 // { dg-error "invalid type" "invalid" { target *-*-* } 14 }