[Mono-bugs] [Bug 26604][Nor] New - mcs doesn't handle nested attributes
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
20 Jun 2002 12:11:17 -0000
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 lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=26604
--- shadow/26604 Thu Jun 20 08:11:17 2002
+++ shadow/26604.tmp.24916 Thu Jun 20 08:11:17 2002
@@ -0,0 +1,41 @@
+Bug#: 26604
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lupus@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs doesn't handle nested attributes
+
+mcs dies when compiling the following test when using the
+ms runtime (it produces the wrong code with the mono runtime: I need to fix
+that and complain as well).
+
+using System;
+class T {
+ class A : Attribute {}
+ [A]
+ static void Main() {}
+}
+Trace:
+In type: T.A
+
+Unhandled Exception: System.InvalidOperationException: Enclosing type T
+must be created before the nested type.
+ at System.Reflection.Emit.TypeBuilder.CreateType()
+ at Mono.CSharp.TypeContainer.CloseType() in d:\mcs\mcs\class.cs:line 1378
+ at Mono.CSharp.RootContext.CloseTypes() in
+d:\mcs\mcs\rootcontext.cs:line 389
+ at Mono.CSharp.Driver.MainDriver(String[] args) in
+d:\mcs\mcs\driver.cs:line 890
+ at Mono.CSharp.Driver.Main(String[] args) in d:\mcs\mcs\driver.cs:line 218
+(null)