[Mono-bugs] [Bug 35357][Maj] New - mcs does not honor AllowMultiple=true in attributes

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
10 Dec 2002 03:51:55 -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 mathpup@mylinuxisp.com.

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

--- shadow/35357	Mon Dec  9 22:51:55 2002
+++ shadow/35357.tmp.28906	Mon Dec  9 22:51:55 2002
@@ -0,0 +1,47 @@
+Bug#: 35357
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mathpup@mylinuxisp.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not honor AllowMultiple=true in attributes
+
+Description of Problem: 
+ 
+When an attribute with the AllowMultiple=true flag is compiled into a library (DLL) and a 
+C# source file uses that attribute multiple times, mcs flags an error. This only occurs 
+when the attribute is compiled into a library and another program links in that library. If 
+the attribute declaration occurs in the same assembly, the program compiles fine. 
+ 
+The steps below refer to the attached files: 
+ 
+Steps to reproduce the problem: 
+1. Compile attribute.cs: mcs /target:library attribute.cs 
+2. Compile attribute-test.cs: mcs /r:attribute.dll attribute-test.cs 
+ 
+ 
+Actual Results: 
+ 
+attribute-test.cs(3) error CS0579: Duplicate 'DeclareQtSignal' attribute 
+Compilation failed: 1 error(s), 0 warnings 
+ 
+Expected Results: 
+ 
+Successful compilation 
+ 
+How often does this happen?  
+ 
+Always 
+ 
+ 
+Additional Information: