Hi Joseph, > 1. You should use -fsignaling-nans if you want signaling NaNs to work > correctly.
Thanks, we’ll compile the libgfortran parts that are IEEE-related with that from now on. Sounds like a good idea, anyway. > 3. There is probably a reasonable case for interpreting such conversions > (including casts) as copy operations instead, including in the absence of > -fsignaling-nans; C23 Annex F leaves that implementation-defined, and > handling such conversions as copy operations is likely to be more > predictable and more useful. I agree that while there may be no guarantee, it sounds like a reasonable expectation in the case I posted. I’ve filed a PR: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103883 Thanks, FX