]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/variadic-crash3.C
Regenerate riscv.opt.urls and i386.opt.urls
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic-crash3.C
CommitLineData
e78b10ce
PC
1// PR c++/60153
2// { dg-do compile { target c++11 } }
3
4enum class foo :int {x,y,z};
5
6template <int a, foo b>
7class A
8{
9public:
10 A()
11 {
12 }
13};
14
15template <typename T>
16struct B
17{
18 typedef T value_type;
19 static const T val;
20};
21
22template <typename... B>
23struct madscience_intitializer
24{
25 template <typename B::value_type... args>
26 using ret_type = A<args...>;
27};
28
29int main()
30{
31 madscience_intitializer<B<int>,B<foo> >::ret_type<1,foo::y> a;
32}