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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75472 --- shadow/75472 2005-07-05 11:29:48.000000000 -0400 +++ shadow/75472.tmp.6847 2005-07-05 11:29:48.000000000 -0400 @@ -0,0 +1,46 @@ +Bug#: 75472 +Product: Mono: Compilers +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: nullref in mcs when it finds an invalid attribute name + +When I try to compile this class: + +public class Test +{ + [aa.bb] int dummy; +} + +I get a nullref here: + +Unhandled Exception: System.NullReferenceException: Object reference not +set to an instance of an object +in <0x0000e> Mono.CSharp.TypeManager:CSharpName (System.Type t) +in <0x0000d> Mono.CSharp.Expression:GetSignatureForError () +in <0x00106> Mono.CSharp.Attribute:ResolvePossibleAttributeTypes +(Mono.CSharp.EmitContext ec, System.Type t1, System.Type t2) +in <0x0002d> Mono.CSharp.Attribute:CheckAttributeType +(Mono.CSharp.EmitContext ec) +in <0x0004a> Mono.CSharp.Attribute:Resolve (Mono.CSharp.EmitContext ec) +in <0x00050> Mono.CSharp.Attribute:Emit (Mono.CSharp.EmitContext ec, +Mono.CSharp.Attributable ias, System.Collections.Specialized.ListDictionary +emitted_attr) +in <0x00097> Mono.CSharp.Attributes:Emit (Mono.CSharp.EmitContext ec, +Mono.CSharp.Attributable ias) +in <0x0007f> Mono.CSharp.FieldMember:Emit () +in <0x00aad> Mono.CSharp.TypeContainer:EmitType () +in <0x00225> Mono.CSharp.RootContext:EmitCode () +in <0x00bea> Mono.CSharp.Driver:MainDriver (System.String[] args) +in <0x0000f> Mono.CSharp.Driver:Main (System.String[] args) _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
