[Mono-bugs] [Bug 28711][Nor] New - Error compiling mcs program
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
8 Aug 2002 04:57:40 -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 murban@houston.rr.com.
http://bugzilla.ximian.com/show_bug.cgi?id=28711
--- shadow/28711 Thu Aug 8 00:57:40 2002
+++ shadow/28711.tmp.18354 Thu Aug 8 00:57:40 2002
@@ -0,0 +1,65 @@
+Bug#: 28711
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: SuSE Linux 8.0
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: murban@houston.rr.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Error compiling mcs program
+
+Description of Problem:
+
+Mcs generates an error when compiling the following program:
+
+using System;
+
+public class State {
+ public int nr;
+}
+
+public class Melted {
+
+ public State state;
+
+ public static void Set( ) {
+ Melted m;
+
+ if (m.state.nr == 0) ;
+ }
+}
+
+public class Test {
+ public static void Main() {}
+}
+
+
+
+Steps to reproduce the problem:
+
+Run 'mcs check.cs'
+
+
+Actual Results:
+
+check.cs(14) error CS0120: An object reference is required for the
+non-static field `state'
+
+Expected Results:
+
+No error -- successful compilation.
+
+How often does this happen?
+
+Always
+
+
+Additional Information: