Bug 311197 (MONO25557) - C# jagged array does not compile under MCS
Summary: C# jagged array does not compile under MCS
Status: RESOLVED MOVED
Alias: MONO25557
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-30 22:14 UTC by Tom Fransen
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 17:57:59 UTC


---- Reported by T.Fransen@mailned.nl 2002-05-30 15:14:26 MST ----

Please fill in this template when reporting a bug, unless you know what 
you are doing.
Description of Problem:
The MCS fails to compile constructs like:

private int[][] slen = new int[2][]{
	 new int[]{0, 0, 0, 0, 3, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4},
	 new int[]{0, 1, 2, 3, 0, 1, 2, 3, 1, 2, 3, 1, 2, 3, 2, 3}
	};

Steps to reproduce the problem:
1. Create a small program that has such a 2 dim jagged array
2. Compile
3. 

Actual Results:

Compilation fails

Expected Results:

Success

How often does this happen? 
Always

Additional Information:
The MS compiler seems to be happy with this construct



---- Additional Comments From lupus@ximian.com 2002-05-31 11:13:00 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO25318 ***


Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"