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: nob...@puremagic.com ReportedBy: simen.kja...@gmail.com --- Comment #0 from Simen Kjaeraas <simen.kja...@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: -------