[Issue 1199] Strange error messages when indexing empty arrays or strings at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 2 10:03:07 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1199


bugzilla at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




------- Comment #3 from bugzilla at digitalmars.com  2007-07-02 12:03 -------
1) 0 is out of bounds in an array of length 0. You cannot access the first
element of a 0 length array, and [0] accesses the first element.

2) The big number is -1 as a size_t. Array indices are implicitly converted to
size_t.

3) Cascaded error messages are often not very helpful, but they aren't bugs in
the compiler.


-- 



More information about the Digitalmars-d-bugs mailing list