Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp1z/typename-tmpl-tmpl-parm-ped-neg.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-do compile { target c++14_down } } // { dg-options "-pedantic" } template<typename T> struct A {}; #if __cplusplus >= 201103L template<typename T> using B = int; #endif template<template<typename> class X> struct C {}; C<A> ca; #if __cplusplus >= 201103L C<B> cb; #endif template<template<typename> typename X> // { dg-warning "ISO C.. forbids typename key in template template parameter" } struct D {}; D<A> da; #if __cplusplus >= 201103L D<B> db; #endif