http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60305
Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |4.6.0, 4.8.3, 4.9.0 Keywords| |ice-on-valid-code Last reconfirmed| |2014-03-01 CC| |reichelt at gcc dot gnu.org Ever confirmed|0 |1 Summary|ICE constexpr array of |[4.7 Regression] ICE |functions in template |constexpr array of | |functions in template Target Milestone|--- |4.7.4 Known to fail| |4.7.0, 4.8.0, 4.8.1, 4.8.2 --- Comment #2 from Volker Reichelt <reichelt at gcc dot gnu.org> --- Confirmed. Happens since GCC 4.7.0, but is already fixed on the trunk (for GCC 4.9.0) and on the 4.8 branch (for GCC 4.8.3). Valid testcase: =========================================== template<int I> int foo() { return I; } template<int... I> void bar() { constexpr int (*X[])() = { foo<I>... }; } template void bar<1,3,5>(); ===========================================