[Mono-bugs] [Bug 433258] New: Parser crashes when it find two consecutive * tokens

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 7 18:42:34 EDT 2008


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: mono-bugs at lists.ximian.com
        ReportedBy: rkumpera at novell.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list