[Mono-bugs] [Bug 24309] New - mcs gets codepaths wrong
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
6 May 2002 20:19:45 -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 crichton@gimp.org.
http://bugzilla.ximian.com/show_bug.cgi?id=24309
--- shadow/24309 Mon May 6 16:19:45 2002
+++ shadow/24309.tmp.7732 Mon May 6 16:19:45 2002
@@ -0,0 +1,42 @@
+Bug#: 24309
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: crichton@gimp.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs gets codepaths wrong
+
+csc compiles this w/o problem. mcs dies:
+
+
+using System;
+
+namespace test
+{
+ class Test {
+
+ public int inverse(int i)
+ {
+ lock(this)
+ {
+ // all done!
+ return(0);
+ }
+ }
+ }
+}
+
+[crichton@antilles tmp]$ MONO_DISABLE_SHM=1 mcs --target library test.cs
+./test.cs(7) error CS0161: Not all code paths return a value
+
+mcs seems to miss that the lock(this) is there just to lock things.