gcc/testsuite/g++.dg/cpp1z/using4.C
raw| 1 | // PR c++/88986 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // { dg-options "" } |
| 4 | |
| 5 | struct B { typedef int type; }; |
| 6 | |
| 7 | template<typename ...T> struct C : T... { |
| 8 | using typename T::type ...; // { dg-warning "pack expansion" "" { target c++14_down } } |
| 9 | void f() { type value; } |
| 10 | }; |
| 11 | |
| 12 | template struct C<B>; |