[Mono-bugs] [Bug 34865][Nor] New - mcs doesn't report errors of type CS0068 and more funny stuff.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
2 Dec 2002 17:49:33 -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 bugbuddy-import@ximian.com.

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

--- shadow/34865	Mon Dec  2 12:49:33 2002
+++ shadow/34865.tmp.26803	Mon Dec  2 12:49:33 2002
@@ -0,0 +1,78 @@
+Bug#: 34865
+Product: Mono/MCS
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: 
+Status: UNCONFIRMED   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: Misc
+AssignedTo: triage@ximian.com                            
+ReportedBy: jaimemonkey@yahoo.es               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs doesn't report errors of type CS0068 and more funny stuff.
+
+Package: Mono/MCS
+Priority: Normal
+Version: CVS Dec01-2002
+Synopsis: mcs doesn't report errors of type CS0068 and more funny stuff.
+Bugzilla-Product: Mono/MCS
+Bugzilla-Component: Misc
+
+Description:
+Description of Problem:
+
+I wrote a test for the CS0068 error. For the first time I am having
+strange results so I would like to get known  of what is happening. 
+When trying to compile the mcs/errors/cs0068.cs test, I get this
+annoying message:
+
+ jaime@intifada:~/src/mono/mcs/errors$ mcs cs0068.cs
+syntax error, expecting SEMICOLON
+cs0068.cs (14,38), Token: ASSIGN   : Parsing error 
+Mono.CSharp.yyParser.yyException: irrecoverable syntax error
+in <0x00868> 00 Mono.CSharp.CSharpParser:yyparse
+(Mono.CSharp.yyParser.yyInput)
+in <0x0006f> 00 Mono.CSharp.CSharpParser:parse ()
+
+Compilation succeeded
+jaime@intifada:~/src/mono/mcs/errors$ 
+
+But as you can see it finally compiles. There are two problems. The
+first one is that the mcs doesn't seem to report CS0068 errors as stated
+but by the other hand, it display a parsing error that AFAIK isn't
+there.
+
+
+Steps to reproduce the problem:
+
+Try the test mcs/errors/cs0068.cs which is:
+
+// cs0068.cs: Event in interface can't have initializer.
+// Line: 14
+
+using System;
+
+class ErrorCS0068 {
+        public delegate void FooHandler ();
+        public void method () {}
+        public static void Main () {
+        }
+}
+
+interface IFoo {
+        event ErrorCS0068.FooHandler OnFoo = new ErrorCS0068.FooHandler
+(ErrorCS0068.method);
+}
+
+
+
+
+Setting qa contact to the default for this product.
+   This bug either had no qa contact or an invalid one.
+
+