[Mono-bugs] [Bug 390666] gmcs fails when passing lambda expression to IQueryable<T> extension method

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 15 10:05:55 EDT 2008


User jbevain at novell.com added comment

Jb Evain <jbevain at novell.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |jbevain at novell.com

--- Comment #1 from Jb Evain <jbevain at novell.com>  2008-05-15 08:05:55 MST ---

using System;

using System.Linq;

class Test {

        static void Main ()


                IQueryable<int> iq = null;                      

                iq.Select (i => i);





[mono] ~/Desktop @ gmcs repro.cs 
error CS8100: Internal error: could not find Invoke method!
Exception caught by the compiler while compiling:
   Block that caused the problem begin at: repro.cs(5,21):
                     Block being compiled: [repro.cs(6,9):,repro.cs(9,9):]
System.NullReferenceException: Object reference not set to an instance of an
Internal compiler error at repro.cs(5,21):: exception caught while emitting
MethodBuilder [Test::Main]

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at Mono.CSharp.MethodGroupExpr.BetterExpressionConversion
(Mono.CSharp.EmitContext ec, Mono.CSharp.Argument a, System.Type p, System.Type
q) [0x00000] 
  at Mono.CSharp.MethodGroupExpr.BetterFunction (Mono.CSharp.EmitContext ec,
System.Collections.ArrayList args, Int32 argument_count,
System.Reflection.MethodBase candidate, Boolean candidate_params,
System.Reflection.MethodBase best, Boolean best_params) [0x00000] 
  at Mono.CSharp.MethodGroupExpr.OverloadResolve (Mono.CSharp.EmitContext ec,
System.Collections.ArrayList& Arguments, Boolean may_fail, Location loc)
  at Mono.CSharp.ExtensionMethodGroupExpr.ResolveOverloadExtensions
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments,
Mono.CSharp.NamespaceEntry ns, Location loc) [0x00000] 
  at Mono.CSharp.ExtensionMethodGroupExpr.OverloadResolve
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList& arguments, Boolean
may_fail, Location loc) [0x00000] 
  at Mono.CSharp.Invocation.DoResolveOverload (Mono.CSharp.EmitContext ec)
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags
flags) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.ExpressionStatement.ResolveStatement (Mono.CSharp.EmitContext
ec) [0x00000] 
  at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext ec)
  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
anonymous_method_host, Mono.CSharp.ToplevelBlock block, Mono.CSharp.Parameters
ip, IMethodData md, System.Boolean& unreachable) [0x00000] 
[mono] ~/Desktop @ 

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