[Mono-bugs] [Bug 685463] New: C# compiler generate invalid IL code

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 6 08:08:15 EDT 2011


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

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


           Summary: C# compiler generate invalid IL code
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: fog at initd.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


This happens on both 2.6.7 and 2-10 branch tip. Just do:

$ csharp
csharp> int? foo = 4;
csharp> object bar = 3;
csharp> foo == (int)bar;

System.InvalidProgramException: Invalid IL code in Class2:Host (object&):
IL_001a: ldloca.s  0
  at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object&
result, System.Boolean& result_set) [0x00000] in <filename unknown>:0 
  at Mono.CSharpShell.Evaluate (System.String input) [0x00000] in <filename
unknown>:0

-- 
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