* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic-ex14.C
blob832c06394fc5d116ab0a5cdeaf45a66bbccff315
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 { /* ... */ };
10 X<A> xA; // okay
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 }
15 Y<A> yA;
16 Y<B> yB;
17 Y<C> yC; // okay