[Mono-bugs] [Bug 542903] New: Mono.CSharp.InternalErrorException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 29 12:50:14 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=542903


           Summary: Mono.CSharp.InternalErrorException
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.4.x
          Platform: i386
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: stephen_sherwood at mcafee.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3

When the following is compiled to a dll an internal compiler error is shown.

using System.Configuration;
using System.Data;
using System.Linq;
using System;
using System.Reflection;

namespace foo
{
    public class bar
    {
        public List<T> ExecuteStoredProcedure<T>(string StoredProcedureName,
params object[] args) where T : new()
        {
            _Exec<List<T>>(__ExecuteStoredProcedure<T>, StoredProcedureName,
args);            
        }

        private void _Exec<T>(Func<string, T> Executor, string sql, params
object[] args)
        {
        }

        private List<T> __ExecuteStoredProcedure<T>(string cmd) where T : new()
        {
            return new List<T>();
        }
    }
}

Compiled with

gmcs -reference:System.Data -reference:System -target:library t.cs

Reproducible: Always

Steps to Reproduce:
Compile program with 

gmcs -reference:System.Data -reference:System -target:library t.cs

Actual Results:  
Exception caught by the compiler while compiling:

   Block that caused the problem begin at: t.cs(14,24):

                     Block being compiled: [t.cs(15,9):,t.cs(17,9):]

Mono.CSharp.InternalErrorException: VerifyArgumentsCompat didn't find any
problem with rejected candidate Void
_Exec[List`1](System.Func`2[System.String,System.Collections.Generic.List`1[T]],
System.String, System.Object[])

Internal compiler error at t.cs(14,24):: exception caught while emitting
MethodBuilder [bar::ExecuteStoredProcedure]



Unhandled Exception: Mono.CSharp.InternalErrorException: VerifyArgumentsCompat
didn't find any problem with rejected candidate Void
_Exec[List`1](System.Func`2[System.String,System.Collections.Generic.List`1[T]],
System.String, System.Object[])

  at Mono.CSharp.MethodGroupExpr.OverloadResolve (Mono.CSharp.EmitContext ec,
System.Collections.ArrayList& Arguments, Boolean may_fail, Location loc)
[0x00000] 

  at Mono.CSharp.Invocation.DoResolveOverload (Mono.CSharp.EmitContext ec)
[0x00000] 

  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)
[0x00000] 

  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] 



Expected Results:  
Program should have compiled to a dll (or at least not shown internal compiler
error)

-- 
Configure bugmail: http://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