Thread overview | |||||
---|---|---|---|---|---|
|
May 10, 2010 [Issue 4170] New: Missing line number on compile-time array index | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4170 Summary: Missing line number on compile-time array index Product: D Version: 2.041 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: simen.kjaras@gmail.com --- Comment #0 from Simen Kjaeraas <simen.kjaras@gmail.com> 2010-05-10 01:25:16 PDT --- void foo( T... )( T values ) { int[ T.length - 1 ] a; foreach ( i, v; values ) { a[ i ] = 0; } } void main( ) { foo( 1, 2, 3 ); } Gives: Error: array index 2 is out of bounds a[0 .. 2] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 09, 2011 [Issue 4170] Missing line number on compile-time array index | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen Kjaeraas | http://d.puremagic.com/issues/show_bug.cgi?id=4170 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |yebblies@gmail.com --- Comment #1 from yebblies <yebblies@gmail.com> 2011-06-09 04:33:08 PDT --- https://github.com/D-Programming-Language/dmd/pull/100 This fixes the missing file/line number, but it currently still prints the error message twice. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 09, 2011 [Issue 4170] Missing line number on compile-time array index | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen Kjaeraas | http://d.puremagic.com/issues/show_bug.cgi?id=4170 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-06-09 12:14:27 PDT --- https://github.com/D-Programming-Language/dmd/commit/208c4ee405ae584b36e2389654a6c1bbab3d00e8 https://github.com/D-Programming-Language/dmd/commit/c9b1fdfd19c262a943a6b78e6e57d301836dbdfa -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation