[Bug c++/55537] constexpr usage crashes the compiler

2012-11-29 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55537 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/55537] constexpr usage crashes the compiler

2012-11-29 Thread akrzemi1 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55537 --- Comment #1 from Andrzej Krzemienski 2012-11-29 21:19:10 UTC --- Even a slightly simpler example crashes: BEGIN constexpr int j = 0; constexpr int const& get() { return (0, j); } constexpr int i = get();