https://llvm.org/bugs/show_bug.cgi?id=24807
Richard Smith <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #6 from Richard Smith <[email protected]> --- >From the C standard: "If part of a program tests floating-point status flags, sets floating-point control modes, or runs under non-default mode settings, but was translated with the state for the FENV_ACCESS pragma "off", the behavior is undefined." Since the FENV_ACCESS pragma is not part of C++, and Clang's only supported state for it is "off", and in any case you didn't use it, your call to feenableexcept invokes undefined behavior. Resolving invalid as your code invokes UB, but this is morally a duplicate of bug 8100 (it would be a duplicate if you had used the necessary pragma). -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list [email protected] http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
