[Mono-bugs] [Bug 48195][Nor] New - mcs - unhandled exception abort

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 5 Sep 2003 16:58:26 -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 roland@ilog.com.

http://bugzilla.ximian.com/show_bug.cgi?id=48195

--- shadow/48195	2003-09-05 16:58:26.000000000 -0400
+++ shadow/48195.tmp.20849	2003-09-05 16:58:26.000000000 -0400
@@ -0,0 +1,69 @@
+Bug#: 48195
+Product: Mono/MCS
+Version: unspecified
+OS: Red Hat 8.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: roland@ilog.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs - unhandled exception abort
+
+Description of Problem: 
+ 
+The following code: 
+============================================ 
+public abstract class C : A.D 
+{ 
+} 
+ 
+public class A { 
+  public abstract class D : IB { 
+  } 
+} 
+ 
+internal interface IB {} 
+============================================ 
+triggers an exception in the CSharp compiler with the 
+mono-0.26-2.ximian.5.1.i386.rpm release. 
+ 
+Steps to reproduce the problem: 
+ 
+1. put above code into file Bug.cs 
+2. mcs /nologo Bug.cs 
+ 
+Actual Results: 
+ 
+Unhandled Exception: System.NullReferenceException: A null value was found where an 
+object instance was required 
+in <0x00431> 00 Mono.CSharp.TypeContainer:DefineType () 
+in <0x001ef> 00 Mono.CSharp.DeclSpace:LookupInterfaceOrClass (string,string,bool&) 
+in <0x00153> 00 Mono.CSharp.DeclSpace:FindType (Mono.CSharp.Location,string) 
+in <0x00125> 00 Mono.CSharp.MemberAccess:ResolveAsTypeStep 
+(Mono.CSharp.EmitContext) 
+in <0x00018> 00 Mono.CSharp.Expression:ResolveAsTypeTerminal 
+(Mono.CSharp.EmitContext) 
+in <0x0005b> 00 Mono.CSharp.DeclSpace:ResolveTypeExpr 
+(Mono.CSharp.Expression,bool,Mono.CSharp.Location) 
+in <0x001e9> 00 Mono.CSharp.TypeContainer:GetClassBases 
+(bool,System.Type&,bool&) 
+in <0x00190> 00 Mono.CSharp.TypeContainer:DefineType () 
+in <0x002ea> 00 Mono.CSharp.RootContext:ResolveTree () 
+in <0x007a4> 00 Mono.CSharp.Driver:MainDriver (string[]) 
+in <0x0001b> 00 Mono.CSharp.Driver:Main (string[]) 
+ 
+ 
+Expected Results: 
+ 
+ 
+How often does this happen?  
+ 
+ 
+Additional Information: