[Mono-bugs] [Bug 72732][Nor] New - Compiler crashes.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 18 Feb 2005 14:31:07 -0500 (EST)
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=72732
--- shadow/72732 2005-02-18 14:31:07.000000000 -0500
+++ shadow/72732.tmp.20566 2005-02-18 14:31:07.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 72732
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Compiler crashes.
+
+If the compiler can not find an attribute, it crashes, try compiling
+the following program:
+
+namespace Hula {
+
+ [WebServiceAttribute (Description="Mail Web Service Interface")]
+ public class Message {
+ public Message ()
+ {
+ }
+ }
+}
+
+The program produces:
+
+mail.cs(3) error CS0246: Could not find attribute 'WebServiceAttribute'
+(are you missing a using directive or an assembly reference ?)
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x001bb> Mono.CSharp.DeclSpace:LookupType
+(string,Mono.CSharp.Location,bool,bool)
+in <0x00060> Mono.CSharp.SimpleName:ResolveAsTypeStep (Mono.CSharp.EmitContext)
+in <0x00097> Mono.CSharp.Attribute:ResolvePossibleAttributeTypes
+(Mono.CSharp.EmitContext,System.Type&,System.Type&)
+in <0x00038> Mono.CSharp.Attribute:CheckAttributeType (Mono.CSharp.EmitContext)
+in <0x00020> Mono.CSharp.Attribute:ResolveType (Mono.CSharp.EmitContext)
+in <0x0007d> Mono.CSharp.Attributes:Search
+(System.Type,Mono.CSharp.EmitContext)
+in <0x00085> Mono.CSharp.MemberCore:GetObsoleteAttribute
+(Mono.CSharp.DeclSpace)
+in <0x00019> Mono.CSharp.MemberCore:Emit ()
+in <0x00019> Mono.CSharp.ClassOrStruct:Emit ()
+in <0x00107> Mono.CSharp.TypeContainer:EmitType ()
+in <0x003e5> Mono.CSharp.RootContext:EmitCode ()
+in <0x00c3c> Mono.CSharp.Driver:MainDriver (string[])
+in <0x0000f> Mono.CSharp.Driver:Main (string[])