https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109576
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.7.1, 5.1.0 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Another testcase: ``` struct static_string { constexpr operator const char*() const { return &chars_; } constexpr static_string() : chars_(0) {} private: char chars_ ;//= '\0'; }; constexpr static_string enum_name_v{}; template<int V> struct s{ static constexpr const char* local_name = enum_name_v; }; auto t = s<0>::local_name; ``` Note the above fails in GCC 4.6.1 differently: <source>:12:51: error: '(const char*){'\000'}' is not a constant expression