[Mono-bugs] [Bug 63884][Nor] New - Compile error not gracefully reported.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 24 Aug 2004 23:34:35 -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 wsbjr@yahoo.com.

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

--- shadow/63884	2004-08-24 23:34:35.000000000 -0400
+++ shadow/63884.tmp.16804	2004-08-24 23:34:35.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 63884
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: wsbjr@yahoo.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Compile error not gracefully reported. 
+
+Description of Problem:
+
+Malformed class declaration produces a parse error.
+
+Steps to reproduce the problem:
+
+public class Test() {
+        public static void Main(string[] args) {
+                System.Console.WriteLine("Hello");
+        }
+}
+
+Actual Results:
+
+syntax error, got token `OPEN_PARENS', expecting OPEN_BRACE COLON
+Mono.CSharp.yyParser.yyException: irrecoverable syntax error
+in <0x00833> Mono.CSharp.CSharpParser:yyparse (Mono.CSharp.yyParser.yyInput)
+in <0x00067> Mono.CSharp.CSharpParser:parse ()
+
+Expected Results:
+
+Error on line xyz.