| 1 |
// PR c++/95298 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-additional-options -fabi-compat-version=0 } |
| 4 |
|
| 5 |
template<class...> |
| 6 |
struct list{}; |
| 7 |
|
| 8 |
template<int n> |
| 9 |
struct _func_select |
| 10 |
{ |
| 11 |
using f = void; |
| 12 |
}; |
| 13 |
|
| 14 |
struct func |
| 15 |
{ |
| 16 |
template<class... seqs> |
| 17 |
using f = typename _func_select<sizeof...(seqs)>::f; |
| 18 |
}; |
| 19 |
|
| 20 |
template<class... T> |
| 21 |
func::f<list<T>...> foo(T&&...) |
| 22 |
{} |
| 23 |
|
| 24 |
// { dg-final { scan-assembler "_Z3fooIJEEN12_func_selectIXsPDp4listIJT_EEEEE1fEDpOS2_" } } |
| 25 |
|
| 26 |
int main() |
| 27 |
{ |
| 28 |
foo(); |
| 29 |
} |