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
void main()
{
auto x = 9223372036854775808; // long.max + 1
}
compilation fails, but specs on https://dlang.org/spec/lex.html#integerliteral tell, that it will not.
See https://forum.dlang.org/post/unesuebhxinmoqzhzhbb@forum.dlang.org
The text was updated successfully, but these errors were encountered:
bugzilla (@WalterBright) commented on 2019-12-16T07:29:47Z
Because it's been implemented this way for 19 years now, and the compiler behavior matches C, I recommend that the spec change rather than the compiler.
bugzilla (@WalterBright) commented on 2019-12-16T07:59:37Z
(In reply to Walter Bright from comment #3)
> I changed this to a spec bug, rather than a compiler bug.
Nitpicking, but: It was a spec bug from the very beginning and I was surprised to see an implementation fix PR...
berni44 (@berni44) reported this on 2019-12-14T10:31:27Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=20449
CC List
Description
void main() { auto x = 9223372036854775808; // long.max + 1 } compilation fails, but specs on https://dlang.org/spec/lex.html#integerliteral tell, that it will not. See https://forum.dlang.org/post/unesuebhxinmoqzhzhbb@forum.dlang.orgThe text was updated successfully, but these errors were encountered: