[Mono-bugs] [Bug 326036] New: Invalid program exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 18 11:05:52 EDT 2007


           Summary: Invalid program exception
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: rharinath at novell.com
        ReportedBy: alan.mcgovern at gmail.com
         QAContact: mono-bugs at ximian.com
                CC: joe at unity3d.com
          Found By: ---

When compiling this using gmcs and running using mono, using the
daily build 15 9 2007, i am getting an invalid program expcetion.
The issue is in this line:
c[0] += new MyColor (1.0F);

class Testing
       public struct MyColor
               float _value;

               public MyColor (float invalue)
                       _value =  invalue;

               static public MyColor operator + (MyColor a, MyColor b)
                       return new MyColor(a._value + b._value);

       static void Main () {
               MyColor[] c = new MyColor [1];
               c[0] += new MyColor (1.0F);
               System.Console.WriteLine("Finnished running to the end");

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