Bug 408096 - Compiler error on expression containing right bit operation
Summary: Compiler error on expression containing right bit operation
Status: RESOLVED DUPLICATE of bug 314903
Alias: None
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.9
Hardware: x86 Windows XP
: P5 - None : Major
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-10 20:51 UTC by April White
Modified: 2008-07-10 22:06 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
test case showing the compiler error (1.06 KB, text/plain)
2008-07-10 20:51 UTC, April White
Details

Note You need to log in before you can comment on or make changes to this bug.
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