[Issue 13606] erroneous overflow error in negative long literal

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Oct 12 07:49:25 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13606

--- Comment #3 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
(In reply to bearophile_hugs from comment #2)
> (In reply to Ketmar Dark from comment #1)
> > p.s. i know about workaround with "-9223372036854775808uL", yet i'm sure
> > that compiler should not reject this value with just "L".
> 
> -9223372036854775808L is a valid long value literal, so the compiler must
> accept it.
by the way: it it correct to accept negative literals with "u" and "uL"? i'm
thing that such literals should be rejected with "overflow" (or "underflow")
error.

--


More information about the Digitalmars-d-bugs mailing list