Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/alias-decl-33a.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/51239 |
2 // { dg-require-effective-target c++11 } | |
3 // This variant should work because tail is equivalent to list. | |
4 | |
5 template<class y, class... x> | |
6 class list{}; | |
7 template<class a, class... b> | |
8 using tail=list<a, b...>; | |
9 template <class...T> | |
10 void f(tail<T...>); | |
11 | |
12 int main() | |
13 { | |
14 f<int,int>({}); | |
15 } |