1 // PR c++/56794 2 // { dg-require-effective-target c++11 } 3 4 template<int... values> Colors()5 static void Colors() 6 { 7 static const int colors[] = { values... }; 8 9 for(auto c: colors) { } 10 } 11 main()12 int main() 13 { 14 Colors<0,1,2> (); 15 } 16