gcc/testsuite/g++.dg/cpp0x/variadic-104.C
raw| 1 | // PR c++/45236 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template <class T, class S> class foo; |
| 5 | |
| 6 | template<template<int...> class C, int... II, class S> |
| 7 | struct foo<C<II...>,S> |
| 8 | { |
| 9 | template <class U> |
| 10 | struct bar { typedef int type; }; |
| 11 | }; |
| 12 | |
| 13 | template <int... I> |
| 14 | struct A {}; |
| 15 | |
| 16 | foo<A<3>, float>::bar<int> x; |