[Issue 1773] excessively long integer literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 17 19:06:04 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1773
aplee at primus.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
Version|1.020 |1.025
------- Comment #2 from aplee at primus.ca 2008-01-17 21:06 -------
Sorry, LargeInt is not necessary. I have found that the problem is only with
dmd (or gdc) on linux:
$ ./dmd
Digital Mars D Compiler v1.025
...
$ cat t.d
ulong v = 0xFFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF;
ulong v = 0x1_0000_0000_0000_0000;
void main() {}
$ ./dmd t.d
t.d(2): integer overflow
Line 1 was not rejected by the compiler. On Windows, both lines are rejected.
--
More information about the Digitalmars-d-bugs
mailing list