[Mono-bugs] [Bug 406648] New: mcs throws Mono.CSharp. InternalErrorException when it encounters nullable types
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jul 6 21:58:58 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=406648
Summary: mcs throws Mono.CSharp.InternalErrorException when it
encounters nullable types
Product: Mono: Compilers
Version: unspecified
Platform: i686
OS/Version: Kubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: sldfaslfsasdkfasdf33 at stobor.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
mcs 1.9.1 thows an InternalErrorException when compiling a file containing a
nullable type.
Expected result: Error message indicating invalid .net1.1 syntax.
Actual result: Error message indicating internal compiler error.
brownianmotion at localhost:/tmp$ cat Test.cs
public class Test
{
static void Main(string[] args)
{
bool? testbool;
}
}
brownianmotion at localhost:/tmp$ mcs Test.cs
Exception caught by the compiler while compiling:
Block that caused the problem begin at: Test.cs(4,21):
Mono.CSharp.InternalErrorException: Couldn't create computed type System.Int32?
Internal compiler error at Test.cs(4,21):: exception caught while emitting
MethodBuilder [Test::Main]
Unhandled Exception: Mono.CSharp.InternalErrorException: Couldn't create
computed type System.Int32?
at Mono.CSharp.ComposedCast.DoResolveAsTypeStep (IResolveContext ec)
[0x00000]
at Mono.CSharp.TypeExpr.ResolveAsTypeStep (IResolveContext ec, Boolean
silent) [0x00000]
at Mono.CSharp.Expression.ResolveAsBaseTerminal (IResolveContext ec, Boolean
silent) [0x00000]
at Mono.CSharp.Expression.ResolveAsTypeTerminal (IResolveContext ec, Boolean
silent) [0x00000]
at Mono.CSharp.Expression.ResolveAsContextualType (IResolveContext rc,
Boolean silent) [0x00000]
at Mono.CSharp.LocalInfo.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
at Mono.CSharp.Block.ResolveMeta (Mono.CSharp.EmitContext ec, Int32 offset)
[0x00000]
at Mono.CSharp.ToplevelBlock.ResolveMeta (Mono.CSharp.EmitContext ec,
Mono.CSharp.Parameters ip) [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]
--
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