Bug 351249

Summary: Compiler can't correclty parse "storedLength + 4 < opt_len >> 3"
Product: [Mono] Mono: Compilers Reporter: Frederik Carlier <frederik.carlier>
Component: C#Assignee: Mono Bugs <mono-bugs>
Status: RESOLVED DUPLICATE QA Contact: Mono Bugs <mono-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: x86-64   
OS: Ubuntu   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: File required to reproduce the bug (simplified)
Original file, exposing the bug, unmodified

Description Frederik Carlier 2008-01-02 22:33:49 UTC
Compiling the attached file fails on Mono, but works with Microsoft's compiler. It is part of an dependency of Open Dental.

Attached are two files, "Bug.cs" wich is a short case, and the complete file at which Mono's compiler barks.

The symptom is that when running 
  gmcs Bug.cs
you get 
  Bug.cs(9,77): error CS1002: Expecting `;'
  Compilation failed: 1 error(s), 0 warnings
but it should be
  Bug.cs(9,77): error CS1002: Expecting `;'
  Compilation failed: 1 error(s), 0 warnings
Comment 1 Frederik Carlier 2008-01-02 22:34:15 UTC
Sorry, it should be:
Bug.cs(9,70): error CS0103: The name `opt_len' does not exist in the current context
Bug.cs(10,33): error CS0103: The name `FlushStoredBlock' does not exist in the current context
Comment 2 Frederik Carlier 2008-01-02 22:34:53 UTC
Created attachment 189063 [details]
File required to reproduce the bug (simplified)
Comment 3 Frederik Carlier 2008-01-02 22:35:20 UTC
Created attachment 189064 [details]
Original file, exposing the bug, unmodified
Comment 4 Marek Safar 2008-01-03 12:33:34 UTC

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