[Mono-bugs] [Bug 463323] Crash in the expression tree compiler when emitting constants

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 26 12:14:41 EST 2009


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

User jan.oravec at 6com.sk added comment
https://bugzilla.novell.com/show_bug.cgi?id=463323#c5





--- Comment #5 from Jan Oravec <jan.oravec at 6com.sk>  2009-01-26 10:14:40 MST ---
Found test case which triggers it on last SVN revision:

using System;
using System.Linq.Expressions;

class M
{
  public static void Main ()
  {
    while (true)
    {
      LambdaExpression l1 = Expression.Lambda (Expression.Constant (true));
      LambdaExpression l2 = Expression.Lambda (Expression.Constant (1));

      Delegate f1 = l1.Compile ();
      Delegate f2 = l2.Compile ();

      if (f1.DynamicInvoke (null).GetType () != typeof (bool))
        throw new Exception ();
      if (f2.DynamicInvoke (null).GetType () != typeof (int))
        throw new Exception ();
    }
  }
}

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