[Mono-bugs] [Bug 25276] New - Rectangular Arrays Generate invalid code

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
25 May 2002 13:36:07 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dave-mono@earth.li.

http://bugzilla.ximian.com/show_bug.cgi?id=25276

--- shadow/25276	Sat May 25 09:36:07 2002
+++ shadow/25276.tmp.30884	Sat May 25 09:36:07 2002
@@ -0,0 +1,57 @@
+Bug#: 25276
+Product: Mono/MCS
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dave-mono@earth.li               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Rectangular Arrays Generate invalid code
+
+Description of Problem:
+If you try using rectangular arrays then mcs throws up warnings and
+generates code that does not run.
+
+Steps to reproduce the problem:
+1. Compile attached RecArrayTest.cs
+
+Actual Results:
+
+$ mcs RecArrayTest.cs
+requested token for MonoArrayMethod
+requested token for MonoArrayMethod
+requested token for MonoArrayMethod
+RESULT: 0
+$ ./RecArrayTest.exe
+got wrong token: 0x00000000
+
+** ERROR **: file loader.c: line 362 (mono_get_method): assertion failed: 
+(table == MONO_TABLE_MEMBERREF)
+aborting...
+Trace/breakpoint Trap
+$      
+
+
+Expected Results:
+$ mcs RecArrayTest.cs
+RESULT: 0
+$ ./RecArrayTest.exe
+a
+$      
+
+
+How often does this happen? 
+Every time
+
+Additional Information:
+This compiles fine using csc, and the resulting exe runs under mono.
+I am using mcs from 22/5
+tests/test-45.cs appears to also test this.