1 // { dg-do compile { target c++11 } }
2 // { dg-options -fno-new-ttp-matching }
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 *-*-* } .-1 }
13 X<C> xC; // { dg-error "mismatch" "mismatch" }
14 // { dg-message "expected a template" "expected" { target *-*-* } .-1 }