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.