[Mono-bugs] [Bug 653376] New: Compile error CS0201 is indicated incorrectly.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 12 15:39:41 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=653376

https://bugzilla.novell.com/show_bug.cgi?id=653376#c0


           Summary: Compile error CS0201 is indicated incorrectly.
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.8.x
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: michael at mudge.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12)
Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)

objects.cs(1397,37): error CS0201: Only assignment, call, increment, decrement,
and new object expressions can be used as a statement

Lines 1396-1398
static void InitMe (out Gamma noMercyWithTheStack) {
  noMercyWithTheStack = new Gamma ();
}


Other errors include:
objects.cs(1428,17): error CS0584: Internal compiler error: Argument is out of
range.
Parameter name: flow-analysis
objects.cs(1428,17): error CS0201: Only assignment, call, increment, decrement,
and new object expressions can be used as a statement
Compilation failed: 4 error(s), 14 warnings

mono/mono/mini/objects.cs:1397,1428 - InitMe() and
test_0_float_load_and_store_with_big_offset()


Reproducible: Always

Steps to Reproduce:
1.Build mono/mono/mini/objects.cs

Actual Results:  
Build fails because the indicated line is incorrectly believed to be an invalid
expression statement.

Expected Results:  
C# code should be legal and compile (or, there is something wrong with the C#,
which is also a part of the Mono project)

The variable being assigned is an out variable and a struct - one or both of
these may be a factor.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list