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


           Summary: Parser crashes when it find two consecutive * tokens
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


MCS crashes with an internal server error in the "*c++ = (byte)(*a++ * *b++);"
line.

Using "*c++ = (byte)(*a++ * (*b++));" instead works just fine.

using System;




public struct Sample
{
        private byte a;

        public static unsafe Sample operator * Sample v1, Sample v2)

        {

                Sample res = new Sample ();
                byte *a = &v1.a;
                byte *b = &v2.a;
                byte *c = &res.a;
                for (int i = 0; i < 16; ++i)
                        *c++ = (byte)(*a++ * *b++);
                return res;

        }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to