[Issue 1199] Strange error messages when indexing empty arrays or strings at compile time
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 3 00:08:08 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1199
------- Comment #9 from onlystupidspamhere at yahoo.se 2007-07-03 02:08 -------
(In reply to comment #8)
> char c = ""[0];
> char d = ""[$];
>
> "dmd asdf" leads to the errors I mentioned. "dmd asdf -inline", "dmd asdf
> -release", and "dmd asdf -inline -release" change the ending index in the
> error message.
I can confirm this. I'm using DMD 1.018 and latest Tango on Linux. Here's the
output of dmd -v -c b1199.d:
parse b1199
semantic b1199
import object (/home/jm/d/tango/object.di)
semantic2 b1199
b1199.d(1): Error: string index 0 is out of bounds [0 .. 582418249900097536]
b1199.d(1): Error: string index 0 is out of bounds [0 .. 582419830448062464]
b1199.d(2): Error: string index 0 is out of bounds [0 .. 582418249900097536]
b1199.d(2): Error: string index 0 is out of bounds [0 .. 582421617154457600]
--
More information about the Digitalmars-d-bugs
mailing list