https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114877
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jsm28 at gcc dot gnu.org
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
The standard says the results are unspecified, it doesn't say *p is written to,
so I'm not sure there's a bug here.
Indeed we do
case rvc_nan:
case rvc_inf:
/* For +-NaN or +-Inf, *exp is unspecified, return arg0. */
return omit_one_operand_loc (loc, rettype, arg0, arg1);