https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104865
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- OK, maybe I should not have used __builtin_nan in the test. The bug is in the rest of the code though, isn't it? Replace the __builtin_nan with a function returning the same sNaN, does the test still fail? (I can't check myself right now).