[Issue 23712] ImportC: Unclear documentation of what type is inferred from integer literals (type of '9223372036854775808' is undefined)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 20 11:58:34 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23712
--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #2)
> Seems that it is undefined behaviour in C, as the test fails under gcc, but
> passes for clang.
>
> https://godbolt.org/z/3hnjzMhfM
Note that both *do* give warnings about it though, to make it abundantly clear
this is not strictly deterministic code.
--
More information about the Digitalmars-d-bugs
mailing list