[Mono-bugs] [Bug 82038][Nor] New - CS0420 reported when executing method on volatile integral type
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Jul 8 02:51:22 EDT 2007
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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=82038
--- shadow/82038 2007-07-08 02:51:21.000000000 -0400
+++ shadow/82038.tmp.28383 2007-07-08 02:51:21.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 82038
+Product: Mono: Compilers
+Version: 1.2
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: CS0420 reported when executing method on volatile integral type
+
+When a method is invoked on an instance of a volatile integral type, then
+(g)mcs reports CS0420.
+
+To reproduce, compile the following code snippet:
+
+class Program
+{
+ volatile static int x = 0;
+
+ static void Main ()
+ {
+ x.GetHashCode ();
+ }
+}
+
+Expected result:
+
+Successful compilation.
+
+Actual result:
+
+test.cs(7,17): error CS0420: `Program.x': A volatile fields cannot be
+passed using a ref or out parameter
More information about the mono-bugs
mailing list