[Mono-bugs] [Bug 76174][Nor] New - mcs emits initlocals methods of
unsafe classes
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Sep 21 03:58:57 EDT 2005
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 jankit at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76174
--- shadow/76174 2005-09-21 03:58:57.000000000 -0400
+++ shadow/76174.tmp.12659 2005-09-21 03:58:57.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 76174
+Product: Mono: Compilers
+Version: 1.1
+OS: unknown
+OS Details:
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: jankit at novell.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs emits initlocals methods of unsafe classes
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Test case (attached):
+
+unsafe class test
+{
+ public void foo ()
+ {
+ uint *u;
+ }
+
+ public static void Main (string [] args)
+ {
+ int a;
+ }
+}
+
+Compiled with mcs and monodis'ed:
+
+ .method public hidebysig
+ instance default void foo () cil managed
+ {
+ .locals init ( --> init
+ unsigned int32* V_0)
+...
+
+ .method public static hidebysig
+ default void Main (string[] args) cil managed
+ {
+ .entrypoint
+ .locals init ( --> init
+ int32 V_0)
+
+-----------
+csc doesn't emit the init for methods of unsafe classes.
More information about the mono-bugs
mailing list