C without Annex F (and C++ without whatever its version is) is essentially a language without floating point.
-
-
Replying to @RichFelker @FioraAeterna
If you assume Annex F, floating division by zero is not undefined.
1 reply 0 retweets 2 likes -
-
-
-
I did touch that code! Last time this came up: https://llvm.org/bugs/show_bug.cgi?id=19535 … -- have things changed?
1 reply 0 retweets 3 likes -
Nothing changed; comment 1 is just wrong and ignores the fact that Annex F overrides the quoted passage.
1 reply 0 retweets 0 likes -
Replying to @RichFelker @wdtz and
F.3 ¶1: "The +, -, *, and / operators provide the IEC 60559 add, subtract, multiply, and divide operations."
1 reply 0 retweets 2 likes -
Replying to @RichFelker @wdtz and
the problem is C has F.3 p1: divide is IEC 60559, but in C++ [expr.mul]p4: div 0 is undefined
2 replies 0 retweets 2 likes -
Replying to @JustinBogner @wdtz and
Doesn't C++ have an analog of Annex F for implementations with IEEE float?
1 reply 0 retweets 0 likes
That would likewise override the undefinedness in the base standard without IEEE float.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.