Bugzilla – Bug 408096
Compiler error on expression containing right bit operation
Last modified: 2008-07-10 22:06:09 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.
*** This bug has been marked as a duplicate of bug 314903 ***
gmcs --version Mono C# compiler version 1.9.1.0