[Mono-bugs] [Bug 58307][Nor] Changed - mcs fails compiling generic program
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 10 May 2004 18:52:33 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sestoft@dina.kvl.dk.
http://bugzilla.ximian.com/show_bug.cgi?id=58307
--- shadow/58307 2004-05-10 18:49:34.000000000 -0400
+++ shadow/58307.tmp.11226 2004-05-10 18:52:33.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 58307
Product: Mono: Compilers
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: sestoft@dina.kvl.dk
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -31,6 +31,46 @@
How often does this happen?
Additional Information:
+
+------- Additional Comments From sestoft@dina.kvl.dk 2004-05-10 18:52 -------
+(Pressed Enter too early and the blasted browser submitted a
+mostly-empty bug report).
+
+Compiling the attached program causes mcs to fail spectacularly
+somewhere in the reflection implementation, apparently:
+
+Mono C# Compiler 0.91.0.0 for Generics
+
+Unhandled Exception: System.NullReferenceException: Object reference
+not set to an instance of an object
+in (unmanaged) /usr/local/lib/libmono.so.0 [0x400a2570]
+in (unmanaged)
+/usr/local/lib/libmono.so.0(mono_field_static_get_value+0x95) [0x400a29b5]
+in (unmanaged) /usr/local/lib/libmono.so.0 [0x400a880f]
+in <0x00013> System.Reflection.MonoField:GetValue (object)
+in <0x00328> Mono.CSharp.MemberAccess:ResolveMemberAccess
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression,Mono.CSharp.Expression,Mono.CSharp.Location,Mono.CSharp.Expression)
+in <0x0047a> Mono.CSharp.SimpleName:SimpleNameResolve
+(Mono.CSharp.EmitContext,Mono.CSharp.Expression,bool)
+in <0x0001c> Mono.CSharp.SimpleName:DoResolveAllowStatic
+(Mono.CSharp.EmitContext)
+in <0x000c6> Mono.CSharp.Expression:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in <0x00017> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext)
+in <0x000e5> Mono.CSharp.Argument:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.Location)
+in <0x0015b> Mono.CSharp.ArrayCreation:DoResolve (Mono.CSharp.EmitContext)
+in <0x000e1> Mono.CSharp.FieldBase:GetInitializerExpression
+(Mono.CSharp.EmitContext)
+in <0x00116> Mono.CSharp.TypeContainer:EmitFieldInitializers
+(Mono.CSharp.EmitContext)
+in <0x003ad> Mono.CSharp.Constructor:Emit (Mono.CSharp.TypeContainer)
+in <0x00470> Mono.CSharp.TypeContainer:Emit ()
+in <0x0084e> Mono.CSharp.RootContext:EmitCode ()
+in <0x00bd0> Mono.CSharp.Driver:MainDriver (string[])
+in <0x00027> Mono.CSharp.Driver:Main (string[])
+
+sest