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_INEXACTis not raised. - All the hardware powered by Infineon TriCore does not raise
FE_INEXACT, because the condition to raiseFE_INEXACTisinexact && ! invalid. I.e. it is not possible to have bothFE_INEXACTandFE_INVALIDraised.
Reason of the question: need to precisely interpret / classify / categorize this case.