[Mono-bugs] [Bug 53457][Nor] New - Problem with `initobj !0'
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 28 Jan 2004 07:34:58 -0500 (EST)
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 martin@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=53457
--- shadow/53457 2004-01-28 07:34:58.000000000 -0500
+++ shadow/53457.tmp.11618 2004-01-28 07:34:58.000000000 -0500
@@ -0,0 +1,33 @@
+Bug#: 53457
+Product: Mono/Runtime
+Version: unspecified
+OS: SUSE 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: martin@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Problem with `initobj !0'
+
+I get
+
+** ERROR **: Invalid IL code at IL000c in .Foo<String>:.ctor (): IL_000c:
+initobj 0x1b000002
+
+when running
+
+IL_0000: ldarg.0
+IL_0001: call instance void valuetype [mscorlib]'System.Object'::.ctor()
+IL_0006: ldarg.0
+IL_0007: ldflda !0 class 'Foo'<!0>::t
+IL_000c: initobj !0
+IL_0012: ret
+
+Attached is a small testcase and the csc generated binary.