[Mono-bugs] [Bug 376508] New: Compiler crash on invalid use of operator +
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Apr 2 15:45:01 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=376508
Summary: Compiler crash on invalid use of operator +
Product: Mono: Compilers
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: atsushi at ximian.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
The following sample code causes (g)mcs crash:
using System;
public class Test
{
public static void Main ()
{
Console.WriteLine ("+++" + Main);
}
}
csc reports:
xxx.cs(7,22): error CS0019: Operator '+' cannot be applied to operands of type
'string' and 'method group'
Exception caught by the compiler while compiling:
Block that caused the problem begin at: xxx.cs(5,28):
Block being compiled: [xxx.cs(6,9):,xxx.cs(8,9):]
Mono.CSharp.InternalErrorException: Invalid conversion
Internal compiler error at xxx.cs(5,28):: exception caught while emitting
Method
Builder [Test::Main]
gmcs crashes:
Unhandled Exception: Mono.CSharp.InternalErrorException: Invalid conversion
at Mono.CSharp.Binary.DoResolve (Mono.CSharp.EmitContext ec) [0x00000]
at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags
fl
ags) [0x00000]
at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
at Mono.CSharp.Argument.Resolve (Mono.CSharp.EmitContext ec, Location loc)
[0x
00000]
at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext ec) [0x00000]
at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags
fl
ags) [0x00000]
at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
at Mono.CSharp.ExpressionStatement.ResolveStatement (Mono.CSharp.EmitContext
e
c) [0x00000]
at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext ec)
[0x000
00]
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,
IMethod
Data md, System.Boolean& unreachable) [0x00000]
--
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