[Mono-bugs] [Bug 58055][Blo] New - volatile interface members dont' work

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 5 May 2004 04:19:40 -0400 (EDT)


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 michi@zeroc.com.

http://bugzilla.ximian.com/show_bug.cgi?id=58055

--- shadow/58055	2004-05-05 04:19:40.000000000 -0400
+++ shadow/58055.tmp.15070	2004-05-05 04:19:40.000000000 -0400
@@ -0,0 +1,33 @@
+Bug#: 58055
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: michi@zeroc.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: volatile interface members dont' work
+
+mcs reports an error for the following:
+
+interface X {}
+class Hello
+{
+    static void Main() {}
+    volatile X _x;
+}
+
+x.cs(5) error CS0677: `Hello._x' A volatile field can not be of type `X'
+Compilation failed: 1 error(s), 0 warnings
+
+The same code works with the MS Visual C# compiler. And, as far as
+I can see, the language spec permits a volatile reference to an
+interface type.