[Issue 3716] New: Regression with multi dimensional array literals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 17 11:30:39 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3716
Summary: Regression with multi dimensional array literals
Product: D
Version: 2.039
Platform: Other
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: aarti at interia.pl
--- Comment #0 from Marcin Kuszczak <aarti at interia.pl> 2010-01-17 11:30:37 PST ---
void main(char[][] args) {
int[][][] input_int1;
//input_int1 = [[[2,3],[4,5],[6,7]], [[]], [[0,-5],[-8,1]]]; //Error
//input_int1 = [[[2,3],[4,5],[6,7]], [[1]], [[0,-5],[-8,1]]]; //Error
input_int1 = [[[2,3],[4,5],[6,7]], [[1,1]], [[0,-5],[-8,1]]]; //Ok
int[] input_int2 = [1, 2, 3, 4];
assert(input_int2 == [1, 2, 3, 4]); //Ok
int[][] input_int3 = [[1,2], [3,4]];
//assert(input_int3 == [[1,2], [3,4]]); //Error
}
Above code used to work with DMD 1 compiler.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list