[Mono-dev] gmcs regression in svn
Alan McGovern
alan.mcgovern at gmail.com
Tue Sep 18 10:59:17 EDT 2007
I'll put a bug report up for htis for you.
Alan.
On 9/17/07, Joachim Ante <joe at unity3d.com> wrote:
>
> Hi,
>
> I currently can't log bugs in bugzilla because the new bug tracker is
> not sending my a verification mail. So i am logging it here, hoping
> someone can look at this asap.
>
> 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);
>
> Compiling the same with gmcs of 1.2.5 works flawlessly.
>
> 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");
> }
> }
>
> Joachim Ante
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070918/aa40919e/attachment.html
More information about the Mono-devel-list
mailing list