http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59571
Bug ID: 59571 Summary: [C++11] ICE when casting inside static member constexpr brace initializer Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com $ cat ice.cpp template <class> struct foo { static constexpr int bar{(int)-1}; }; $ g++ -std=c++11 -c ice.cpp ice.cpp:4:37: internal compiler error: unexpected expression ‘(int)((-1))’ of kind cast_expr static constexpr int bar{(int)-1}; ^ ice.cpp:4:37: internal compiler error: Aborted g++: internal compiler error: Aborted (program cc1plus) ... $ g++ --version g++ (GCC) 4.8.2 ...