[Mono-bugs] [Bug 693947] New: Compiler crashes when invoking a delegate definition
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon May 16 04:23:22 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=693947
https://bugzilla.novell.com/show_bug.cgi?id=693947#c0
Summary: Compiler crashes when invoking a delegate definition
Classification: Mono
Product: Mono: Compilers
Version: 2.10.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: msafar at novell.com
ReportedBy: adriaanvk at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=429720)
--> (http://bugzilla.novell.com/attachment.cgi?id=429720)
Source file. Build with gmcs Main.cs
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML,
like Gecko) Chrome/11.0.696.48 Safari/534.24
gmcs Main.cs gives a compiler crash. In the source, i accidentally invoke the
delegate definition rather then an instance of it. Please throw a nice
exception here.
Reproducible: Always
Steps to Reproduce:
1. compile source:
delegate string Test(string t);
public static void Main (string[] args)
{
Test("t");
}
2.
3.
Actual Results:
error:
Internal compiler error at /tmp/test/test1/test1/Main.cs(9,36):: exception
caught while emitting MethodBuilder [MainClass::Main]
Unhandled Exception: Mono.CSharp.InternalErrorException: FullNamedExpression
`test1.MainClass.Test' found in resolved tree
at Mono.CSharp.FullNamedExpression.Emit (Mono.CSharp.EmitContext ec)
[0x00000] in <filename unknown>:0
at Mono.CSharp.Invocation.EmitCall (Mono.CSharp.EmitContext ec,
Mono.CSharp.Expression instance_expr, Mono.CSharp.MethodSpec method,
Mono.CSharp.Arguments Arguments, Location loc, Boolean dup_args, Boolean
omit_args) [0x00000] in <filename unknown>:0
at Mono.CSharp.Invocation.EmitCall (Mono.CSharp.EmitContext ec,
Mono.CSharp.Expression instance_expr, Mono.CSharp.MethodSpec method,
Mono.CSharp.Arguments Arguments, Location loc) [0x00000] in <filename
unknown>:0
at Mono.CSharp.DelegateInvocation.Emit (Mono.CSharp.EmitContext ec) [0x00000]
in <filename unknown>:0
at Mono.CSharp.DelegateInvocation.EmitStatement (Mono.CSharp.EmitContext ec)
[0x00000] in <filename unknown>:0
at Mono.CSharp.StatementExpression.DoEmit (Mono.CSharp.EmitContext ec)
[0x00000] in <filename unknown>:0
at Mono.CSharp.Statement.Emit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0
at Mono.CSharp.Block.DoEmit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0
at Mono.CSharp.Block.Emit (Mono.CSharp.EmitContext ec) [0x00000] in <filename
unknown>:0
at Mono.CSharp.ExplicitBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0
at Mono.CSharp.ToplevelBlock.Emit (Mono.CSharp.EmitContext ec) [0x00000] in
<filename unknown>:0
at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x00000] in
<filename unknown>:0
at Mono.CSharp.MethodOrOperator.Emit () [0x00000] in <filename unknown>:0
at Mono.CSharp.Method.Emit () [0x00000] in <filename unknown>:0
Expected Results:
nice 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