Follow-up question for Why conversion (unsigned long long)DBL_MAX (or FLT_MAX) causes raising of FE_INEXACT as well?.
Is raising of unexpected exception (FE_INEXACT
) considered as an implementation defect?
Notes:
- User @Nate Eldredge confirms that on AArch64
FE_INEXACT
is not raised. - All the hardware powered by Infineon TriCore does not raise
FE_INEXACT
, because the condition to raiseFE_INEXACT
isinexact && ! invalid
. I.e. it is not possible to have bothFE_INEXACT
andFE_INVALID
raised.
Reason of the question: need to precisely interpret / classify / categorize this case.