Bug 12943 – Duplicated error message for out of bound array index
Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-06-18T23:25:00Z
Last change time
2015-01-16T07:44:23Z
Keywords
diagnostic
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2014-06-18T23:25:57Z
void main() {
int[5] arr;
auto x = arr[7];
}
DMD 2.066alpha gives two error messages, where one is enough:
test.d(3,14): Error: array index 7 is out of bounds arr[0 .. 5]
test.d(3,14): Error: array index 7 is out of bounds arr[0 .. 5]
Comment #1 by k.hara.pg — 2015-01-16T07:44:23Z
*** This issue has been marked as a duplicate of issue 10910 ***