gcc/testsuite/g++.dg/cpp0x/vt-88982.C
raw| 1 | // PR c++/88982 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // { dg-additional-options "-fchecking" } |
| 4 | // { dg-ice "tsubst_pack_expansion" } |
| 5 | |
| 6 | template<typename...Ts> struct A { |
| 7 | template<template<typename, Ts = 0> class ...Cs, Cs<Ts> ...Vs> struct B { |
| 8 | B() { |
| 9 | } |
| 10 | }; |
| 11 | }; |
| 12 | |
| 13 | template<typename, int> using Int = int; |
| 14 | template<typename, short> using Char = char; |
| 15 | A<int, short>::B<Int, Char> b; |