mail-archives/mono-bugs/2004-June/017529.html

95 строки
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 60333][Nor] New - mcs reports error CS0182 when casting a constant value in attribute
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="017528.html">
<LINK REL="Next" HREF="017530.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 60333][Nor] New - mcs reports error CS0182 when casting a constant value in attribute
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 60333][Nor] New - mcs reports error CS0182 when casting a constant value in attribute">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Thu, 17 Jun 2004 03:07:19 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="017528.html">[Mono-bugs] [Bug 60157][Wis] Changed - mono segfault on amd64
</A></li>
<LI> Next message: <A HREF="017530.html">[Mono-bugs] [Bug 60334][Cri] New - Possible document exploit via RelaxngGrammar compiler
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17529">[ date ]</a>
<a href="thread.html#17529">[ thread ]</a>
<a href="subject.html#17529">[ subject ]</a>
<a href="author.html#17529">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:gert.driesen@pandora.be.">gert.driesen@pandora.be.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=60333">http://bugzilla.ximian.com/show_bug.cgi?id=60333</A>
--- shadow/60333 2004-06-17 03:07:19.000000000 -0400
+++ shadow/60333.tmp.11995 2004-06-17 03:07:19.000000000 -0400
@@ -0,0 +1,31 @@
+Bug#: 60333
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:gert.driesen@pandora.be">gert.driesen@pandora.be</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs reports error CS0182 when casting a constant value in attribute
+
+mcs reports error CS0182 (An attribute argument must be a constant
+expression, typeof expression or array creation expression) when
+compiling the following code fragment :
+
+using System.Runtime.InteropServices;
+
+public interface ITest
+{
+ int Next ([MarshalAs (UnmanagedType.LPArray, ArraySubType =
+(UnmanagedType) 80, SizeParamIndex = 0)] int[] rgelt);
+}
+
+This compiles fine using csc.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="017528.html">[Mono-bugs] [Bug 60157][Wis] Changed - mono segfault on amd64
</A></li>
<LI> Next message: <A HREF="017530.html">[Mono-bugs] [Bug 60334][Cri] New - Possible document exploit via RelaxngGrammar compiler
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17529">[ date ]</a>
<a href="thread.html#17529">[ thread ]</a>
<a href="subject.html#17529">[ subject ]</a>
<a href="author.html#17529">[ author ]</a>
</LI>
</UL>
</body></html>