Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-ice14.C

raw
1 // PR c++/60305
2 // { dg-do compile { target c++11 } }
3
4 template<int I> int foo() { return I; }
5
6 template<int... I> void bar()
7 {
8 constexpr int (*X[])() = { foo<I>... };
9 }
10
11 template void bar<1,3,5>();