[Mono-bugs] [Bug 58308][Nor] New - mcs fails parsing method whose return type is a constructed type

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 10 May 2004 19:03:05 -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 sestoft@dina.kvl.dk.

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

--- shadow/58308	2004-05-10 19:03:05.000000000 -0400
+++ shadow/58308.tmp.11357	2004-05-10 19:03:05.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 58308
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sestoft@dina.kvl.dk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs fails parsing method whose return type is a constructed type
+
+Description of Problem:
+
+mcs fails parsing method whose return type is a constructed type.  Looks
+like the parser gets the wrong kind of token: OP_LT rather than OP_GENERICS_LT 
+
+
+Steps to reproduce the problem:
+1. Compile the attached C# program 
+
+
+Actual Results:
+
+Mono C# Compiler 0.91.0.0 for Generics
+syntax error, got token `OP_LT', expecting ABSTRACT EXTERN INTERNAL NEW
+OPERATOR OVERRIDE PRIVATE PROTECTED PUBLIC READONLY SEALED STATIC THIS
+UNSAFE VIRTUAL VOLATILE OPEN_BRACKET OPEN_PARENS DOT OP_GENERICS_LT STAR
+IDENTIFIER
+Mono.CSharp.yyParser.yyException: irrecoverable syntax error
+in <0x0083c> Mono.CSharp.CSharpParser:yyparse (Mono.CSharp.yyParser.yyInput)
+in <0x00079> Mono.CSharp.CSharpParser:parse ()
+
+ex-iterator-queens.cs(26) error CS8025: Parsing error
+
+
+Expected Results:
+
+Should compile OK.