gcc/testsuite/g++.dg/cpp0x/alias-decl-15.C
raw| 1 | // Origin PR c++/51194 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template<class U, class V> //#1 |
| 5 | struct foo {}; |
| 6 | |
| 7 | template<class U, class V=char> |
| 8 | struct P {}; |
| 9 | |
| 10 | template<template<class... U> class... TT> |
| 11 | struct bar { |
| 12 | template<class... Args> |
| 13 | using mem = P<TT<Args...>...>;//#2 |
| 14 | }; |
| 15 | |
| 16 | bar<foo>::mem<int, char> b;//#3 |
| 17 |