[Mono-bugs] [Bug 76404][Min] New - [PATCH] mcs misses the location of CS0214 for constants

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Oct 11 03:15:54 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 atsushi at ximian.com.

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

--- shadow/76404	2005-10-11 03:15:51.000000000 -0400
+++ shadow/76404.tmp.21150	2005-10-11 03:15:51.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 76404
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] mcs misses the location of CS0214 for constants
+
+mcs misses the location of CS0214 for constants.
+
+class Test
+{
+        public void Main ()
+        {
+                byte* arr = stackalloc byte [4];
+        }
+}
+
+
+
+Actual Results:
+
+$ mcs cs0214-location.cs
+error CS0214: Pointers and fixed size buffers may only be used in an unsafe
+context
+
+Expected Results:
+
+cs0214-loc.cs(7,7): error CS0214: Pointers and fixed size buffers may only
+be used in an unsafe context
+
+How often does this happen? 
+
+consistently.
+
+Additional Information:
+
+A fix being attached.


More information about the mono-bugs mailing list