Bug 324310 (MONO81634)

Summary: syntax error, order of operations, shifting
Product: [Mono] Mono: Compilers Reporter: Jerome Haltom <wasabi>
Component: C#Assignee: Mono Bugs <mono-bugs>
Status: RESOLVED DUPLICATE QA Contact: Mono Bugs <mono-bugs>
Severity: Enhancement    
Priority: P3 - Medium    
Version: 1.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Thomas Wiest 2007-09-15 20:38:44 UTC


---- Reported by wasabi@larvalstage.net 2007-05-15 15:51:18 MST ----

if (storedOffset >= 0 && storedLength + 4 < opt_len >> 3) {

This produces a number of syntax errors. If you force the order of
operations, such as:

if (storedOffset >= 0 && (storedLength + 4) < (opt_len >> 3)) {

Then it compiles fine. The first form compiles in the MS compiler. I am
using gmcs 1.2.3.1.



---- Additional Comments From marek.safar@seznam.cz 2007-05-15 18:53:15 MST ----

*** https://bugzilla.novell.com/show_bug.cgi?id=MONO81536 has been marked as a duplicate of this bug. ***


Unknown operating system unknown. Setting to default OS "Other".

Comment 2 Marek Safar 2007-11-05 13:14:55 UTC

*** This bug has been marked as a duplicate of bug 314903 ***