[Mono-bugs] [Bug 52730][Wis] Changed - We generate invalid IL for the access of static readonly fields in ctors

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 10 Jan 2004 08:13:34 -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 pcgod@gmx.net.


--- shadow/52730	2004-01-09 22:46:33.000000000 -0500
+++ shadow/52730.tmp.29577	2004-01-10 08:13:34.000000000 -0500
@@ -46,6 +46,11 @@
 IL_000b:  ldloca.s 1
 IL_000d:  call instance int64 valuetype [mscorlib]'System.DateTime'::'ge
 The code for the ctor is invalid. You cant load the address of a readonly
 field except for in a .cctor. PEVerify complains about this.
+------- Additional Comments From pcgod@gmx.net  2004-01-10 08:13 -------
+Created an attachment (id=6381)
+proposed patch