[Mono-bugs] [Bug 541593] New: gmcs raise InternalErrorException for partial and generic struct's constructor
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Sep 23 19:36:10 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=541593
Summary: gmcs raise InternalErrorException for partial and
generic struct's constructor
Classification: Mono
Product: Mono: Compilers
Version: 2.4.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: saiya.v6 at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Description of Problem:
gmcs 2.4.2.3 raise InternalErrorException for partial and generic struct's
constructor.
Code for reproduce:
namespace SUtils {
public partial struct STuple<Ta> { }
public partial struct STuple<Ta> {
private readonly Ta a;
public STuple(Ta a) { this.a = a; }
}
}
Steps to reproduce the problem:
1. Compile above code with gmcs 2.4.2.3
Actual Results:
Unhandled Exception: Mono.CSharp.InternalErrorException: STuple.cs(6,24):
SUtils.STuple<Ta>.STuple(Ta) ---> System.NullReferenceException: Object
reference not set to an instance of an object
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.Constructor.Emit () [0x00000]
at Mono.CSharp.TypeContainer.EmitConstructors () [0x00000]
--- End of inner exception stack trace ---
at Mono.CSharp.TypeContainer.EmitConstructors () [0x00000]
at Mono.CSharp.TypeContainer.EmitType () [0x00000]
at Mono.CSharp.RootContext.EmitCode () [0x00000]
at Mono.CSharp.Driver.Compile () [0x00000]
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
Expected Results:
With no exceptions. (csc.exe can successfully compile this code)
How often does this happen?
Always happen.
--
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