[Mono-bugs] [Bug 28562][Nor] New - type info lost with enum arguments to a custom attr that takes an object

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
5 Aug 2002 11:20: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=28562

--- shadow/28562	Mon Aug  5 07:20:17 2002
+++ shadow/28562.tmp.23314	Mon Aug  5 07:20:17 2002
@@ -0,0 +1,29 @@
+Bug#: 28562
+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: type info lost with enum arguments to a custom attr that takes an object
+
+The test case is mono/tests/cattr-object.cs.
+There is an attribute that takes an object as argument:
+public My (object obj) {...}
+It compiles with the mono runtime and with csc.
+mcs on the windows runtime will crash.
+There is also a miscompilation issue, though:
+the entry:
+[My(TypeCode.Empty)]
+is miscompiled, because mcs takes the integer value of
+TypeCode.Empty and puts it into an object of type Int32.
+It should instead put it inside an object of type TypeCode.