Bug 408096

Summary: Compiler error on expression containing right bit operation
Product: [Mono] Mono: Compilers Reporter: April White <april.white>
Component: C#Assignee: Mono Bugs <mono-bugs>
Status: RESOLVED DUPLICATE QA Contact: Mono Bugs <mono-bugs>
Severity: Major    
Priority: P5 - None    
Version: 1.9   
Target Milestone: ---   
Hardware: x86   
OS: Windows XP   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: test case showing the compiler error

Description April White 2008-07-10 20:51:12 UTC
Created attachment 227092 [details]
test case showing the compiler error

Description of Problem:

Compiler fails to parse an expression containing a right bit shift operation.

Simple expressions as such are compiled, a more complex one fails.

Steps to reproduce the problem:
1. compile the attached file: gmcs invalid-parsing.cs
2. 

Actual Results:
invalid-parsing.cs(39,79): error CS1002: Expecting `;'
invalid-parsing.cs(43,25): error CS1518: Expected `class', `delegate', `enum', `interface', or `struct'

Expected Results:
No error message.

How often does this happen? 
Repeatable.

Additional Information:
Enclosing the sub-expression with brackets eliminates the error.
Comment 1 Marek Safar 2008-07-10 21:13:48 UTC

*** This bug has been marked as a duplicate of bug 314903 ***
Comment 2 April White 2008-07-10 22:06:09 UTC
gmcs --version
Mono C# compiler version 1.9.1.0