Bug 324310 (MONO81634) - syntax error, order of operations, shifting
Summary: syntax error, order of operations, shifting
Status: RESOLVED DUPLICATE of bug 314903
Alias: MONO81634
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.2
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-15 22:51 UTC by Jerome Haltom
Modified: 2007-11-05 13:14 UTC (History)
0 users

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


Attachments

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