You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right. The exception does not occur when compiling with -ftrapping-math or when adding #pragma STDC FENV_ACCESS ON.
With this information, would you then regard this case as a bug or is the advice to always add -ftrapping-math or #pragma STDC FENV_ACCESS ON when searching for floating point exceptions?
When the
FE_INVALID
exception trap is enabled, an exception is caught but there is no reason why this code should produce such an exception.Script:
How to reproduce the error:
0.0
I found out that no exception is caught (which is correct) in the following scenarios:
System details:
Operating system: Ubuntu 24.04
Clang version: 18.1.3
GCC version: 13.3.0
Eigen version: 3.3.90
The text was updated successfully, but these errors were encountered: