1 // { dg-do compile { target c++14_down } } 2 // { dg-options "-pedantic" } 3 4 template<typename T> 5 struct A {}; 6 7 #if __cplusplus >= 201103L 8 template<typename T> 9 using B = int; 10 #endif 11 12 template<template<typename> class X> 13 struct C {}; 14 15 C<A> ca; 16 17 #if __cplusplus >= 201103L 18 C<B> cb; 19 #endif 20 21 template<template<typename> typename X> // { dg-warning "ISO C.. forbids typename key in template template parameter" } 22 struct D {}; 23 24 D<A> da; 25 26 #if __cplusplus >= 201103L 27 D<B> db; 28 #endif 29