[Mono-bugs] [Bug 52429][Wis] New - attribute issue
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 3 Jan 2004 18:22:13 -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 tberman@gentoo.org.
http://bugzilla.ximian.com/show_bug.cgi?id=52429
--- shadow/52429 2004-01-03 18:22:13.000000000 -0500
+++ shadow/52429.tmp.21513 2004-01-03 18:22:13.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 52429
+Product: Mono/Compilers
+Version: unspecified
+OS: unknown
+OS Details:
+Status: RESOLVED
+Resolution: FIXED
+Severity: Unknown
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: tberman@gentoo.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: attribute issue
+
+take both files, compile together with mcs, you will get an error.
+
+this works on csc without any issue.
+
+(Note, im not sure if this example will completely compile, but you should
+be able to get rid of the:
+
+test2.cs(7) error CS0182: An attribute argument must be a constant
+expression, typeof expression or array creation expression
+
+error)
+
+------- Additional Comments From tberman@gentoo.org 2003-12-21 16:41 -------
+Created an attachment (id=6290)
+test2.cs
+
+
+------- Additional Comments From tberman@gentoo.org 2003-12-21 16:41 -------
+Created an attachment (id=6291)
+XmlMemberArrayAttribute.cs
+
+
+------- Additional Comments From pcgod@gmx.net 2003-12-24 22:35 -------
+Created an attachment (id=6323)
+proposed patch
+
+
+------- Additional Comments From pcgod@gmx.net 2003-12-24 22:38 -------
+this patch works for me, but someone who knows more about mcs should
+look at it, if there is no better way to get the value of a cast
+expression (that case is not triggered by the provided testcase but
+it will be used if you change the type to for example long[]). It may
+also need the runtime change which is in #52451
+
+------- Additional Comments From tberman@gentoo.org 2004-01-03 18:22 -------
+fixed in cvs