[Mono-bugs] [Bug 386068] Compiler crash when method parameter used in LINQ expression

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jun 1 14:25:52 EDT 2008


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

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





--- Comment #1 from Jan Oravec <jan.oravec at 6com.sk>  2008-06-01 12:25:50 MDT ---
It seems that parameter.ExpressionTreeVariableReference is called without prior
call of parameter.CreateExpressionTreeVariable, so null is returned.

I have tried to create expression tree variable lazily from
ExpressionTreeVariableReference. Compilation succeeded, but execution failed
on:

Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: body
  at System.Linq.Expressions.Expression.Lambda[Predicate`1]
(System.Linq.Expressions.Expression body, IEnumerable`1 parameters) [0x00000] 
  at System.Linq.Expressions.Expression.Lambda[Predicate`1]
(System.Linq.Expressions.Expression body,
System.Linq.Expressions.ParameterExpression[] parameters) [0x00000] 
  at Foo.Goo (Boolean hoo) [0x00000] 
  at Foo.Main () [0x00000] 

I am not sure if my approach is wrong, or there is some other bug, but it is on
compiler side (there is no call to constructor of
System.Linq.Expressions.ConstantExpression in IL code).


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