[Mono-bugs] [Bug 76656][Cos] Changed - Confusing error message. Incorrect 'Expecting: ...'

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Nov 10 18:00:18 EST 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 miguel at ximian.com.


--- shadow/76656	2005-11-09 15:18:04.000000000 -0500
+++ shadow/76656.tmp.31179	2005-11-10 18:00:18.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 76656
 Product: Mono: Compilers
 Version: unspecified
+OS: unknown
 OS Details: 
 Status: NEW   
+Severity: Unknown
 Priority: Cosmetic
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: gonzalo at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -34,6 +34,15 @@
 It fails, of course, bug MS says that it is waiting for a ')', while the
 error by mcs/gmcs is:
 syntax error, got token `SEMICOLON'
 bug.cs(7,59): error CS1002: Expecting `;'
 syntax error, got token `SEMICOLON'
 bug.cs(9,58): error CS1002: Expecting `;'
+------- Additional Comments From miguel at ximian.com  2005-11-10 18:00 -------
+The parser has the information, but we are not consuming it properly.
+We might be able to "stash" all the tokens on a variable when the
+error is reported and use that in our call to Report.Error.
+Or alternatively, we could change the yyError interface to take the
+list of strings and report this to the user.

More information about the mono-bugs mailing list