[Bug c++/57979] G++ accepts constant expression defined using floating point non-constexpr glvalue
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 18 14:03:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57979
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
This was introduced by the fix for bug 21089; decay_conversion and
convert_like_real shouldn't be pulling values out of variables that are not
decl_const_var_p. The trick is fixing that without breaking the static
initialization optimization that 21089 is about. I guess allowing
maybe_constant_init to be more aggressive than *_constant_value is the way to
approach this.
More information about the Gcc-bugs
mailing list