[Mono-bugs] [Bug 76797][Nor] New - [GMCS] Can't handle custom attributes for type parameters

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Nov 23 02:21:34 EST 2005


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 jankit at novell.com.

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

--- shadow/76797	2005-11-23 02:21:34.000000000 -0500
+++ shadow/76797.tmp.15051	2005-11-23 02:21:34.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 76797
+Product: Mono: Compilers
+Version: 1.1
+OS: unknown
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: jankit at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] Can't handle custom attributes for type parameters
+
+Please fill in this template when reporting a bug, unless you know what you 
+are doing.
+Description of Problem:
+
+test case:
+*********
+      1 using System;
+      2
+      3 [AttributeUsage(AttributeTargets.GenericParameter)]
+      4 class GenParAttribute : Attribute {
+      5 }
+      6
+      7 class cons <[GenPar] A> {
+      8         public void abc <[GenPar] M> () {
+      9         }
+     10 }
+     11
+     12 class Test {
+     13         public static void Main ()
+     14         {
+     15         }
+     16 }
+
+*********
+
+gmcs gives:
+
+syntax error, got token `OP_LT'
+bb.cs(7,13): error CS8025: Parsing error
+Compilation failed: 1 error(s), 0 warnings
+
+csc compiles it fine.
+
+The test case is attached.


More information about the mono-bugs mailing list