[Mono-bugs] [Bug 60080][Nor] Changed - mcs does not emit custom FlagsAttribute for enums

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 12 Jun 2004 11:53:30 -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 miguel@ximian.com.

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

--- shadow/60080	2004-06-12 04:04:49.000000000 -0400
+++ shadow/60080.tmp.4797	2004-06-12 11:53:30.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 60080
 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: gert.driesen@pandora.be               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -58,6 +58,27 @@
 02000002 *//TestEnum/* 02000003 */ Public = int32(0x00000006)
     .field /*04000004*/ public static literal valuetype EntryPoint/* 
 02000002 *//TestEnum/* 02000003 */ ReuseSlot = int32(0x00000000)
   } // end of class TestEnum
 
 As you can see, there's no custom attribute emitted.
+
+------- Additional Comments From miguel@ximian.com  2004-06-12 11:53 -------
+What is your setup?  On my machine I get this:
+
+
+  .class private auto ansi sealed 'TestEnum'
+  	extends [mscorlib]System.Enum
+  {
+    .custom instance void class
+[mscorlib]'System.FlagsAttribute'::.ctor() =  (01 00 00 00 ) // ....
+
+    .field  public specialname  rtspecialname   int32 'value__'
+    .field public static  literal   valuetype 'TestEnum'
+'PrivateScope' = int32(0)
+    .field public static  literal   valuetype 'TestEnum' 'Public' =
+int32(6)
+    .field public static  literal   valuetype 'TestEnum' 'ReuseSlot' =
+int32(0)
+
+  } // end of type TestEnum
+