[Mono-bugs] [Bug 59289][Wis] New - The grammar for generics misparses

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 28 May 2004 22:35:12 -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 duncan@ximian.com.

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

--- shadow/59289	2004-05-28 22:35:12.000000000 -0400
+++ shadow/59289.tmp.23971	2004-05-28 22:35:12.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 59289
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: duncan@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The grammar for generics misparses
+
+mcs compiles this code just fine. With gmcs, we get this error:
+
+ALPHA SOFTWARE: Mono C# Compiler 0.91.99.0 for Generics
+syntax error, got token `OP_GENERICS_LT', expecting AS IS CLOSE_BRACE
+OPEN_BRACKET CLOSE_BRACKET OPEN_PARENS CLOSE_PARENS DOT COMMA COLON
+SEMICOLON PLUS MINUS ASSIGN OP_LT OP_GT BITWISE_AND BITWISE_OR STAR PERCENT
+DIV CARRET INTERR OP_INC OP_DEC OP_SHIFT_LEFT OP_SHIFT_RIGHT OP_LE OP_GE
+OP_EQ OP_NE OP_AND OP_OR OP_MULT_ASSIGN OP_DIV_ASSIGN OP_MOD_ASSIGN
+OP_ADD_ASSIGN OP_SUB_ASSIGN OP_SHIFT_LEFT_ASSIGN OP_SHIFT_RIGHT_ASSIGN
+OP_AND_ASSIGN OP_XOR_ASSIGN OP_OR_ASSIGN OP_PTR
+./ICSharpCode.SharpZipLib/Zip/Compression/DeflaterHuffman.cs(713) error
+CS1002: Expecting `;'
+Mono.CSharp.yyParser.yyException: irrecoverable syntax error
+in <0x00886> Mono.CSharp.CSharpParser:yyparse (Mono.CSharp.yyParser.yyInput)
+in <0x00079> Mono.CSharp.CSharpParser:parse ()
+
+Line 713 of DeflaterHuffman.cs says:
+
+if (storedOffset >= 0 && storedLength+4 < opt_len >> 3) {
+
+There shouldn't be an OP_GENERIC_LT there.