[Mono-bugs] [Bug 36080][Wis] New - cs0209.cs Fixed Error not detected.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
24 Dec 2002 14:48:56 -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 raciel@es.gnu.org.

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

--- shadow/36080	Tue Dec 24 09:48:56 2002
+++ shadow/36080.tmp.15902	Tue Dec 24 09:48:56 2002
@@ -0,0 +1,40 @@
+Bug#: 36080
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: raciel@es.gnu.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: cs0209.cs Fixed Error not detected.
+
+I have made the following sample test:
+
+public class A
+{
+        unsafe static void Main ()
+        {
+                fixed (string s)
+                {
+                }
+        }
+}
+
+When I compile it tell me:
+
+raciel@voyager:~/cvs/mono/mcs/errors$ mcs /unsafe cs0209.cs
+syntax error, expecting OPEN_BRACKET STAR
+cs0209.cs(5) error CS1002: Expecting `;'
+cs0209.cs(10) error CS-0025: : Parsing error 
+Mono.CSharp.yyParser.yyException: irrecoverable syntax error at end-of-file
+in <0x0075e> 00 Mono.CSharp.CSharpParser:yyparse (Mono.CSharp.yyParser.yyInput)
+in <0x0006e> 00 Mono.CSharp.CSharpParser:parse ()
+
+Compilation failed: 2 error(s), 0 warnings