[Mono-bugs] [Bug 81513][Nor] New - GMCS: Generic XML cref attribute parsed incorrectly

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 2 11:18:20 EDT 2007


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 mike.allen at durrusa.com.

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

--- shadow/81513	2007-05-02 11:18:20.000000000 -0400
+++ shadow/81513.tmp.15085	2007-05-02 11:18:20.000000000 -0400
@@ -0,0 +1,82 @@
+Bug#: 81513
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: Ubuntu 7.04
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: mike.allen at durrusa.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: GMCS: Generic XML cref attribute parsed incorrectly
+
+Description of Problem:
+
+I'm using version 1.2.3.1 of the Mono gmcs compiler (standard mono-gmcs
+Ubuntu package).
+
+C# document comments allow references to generic classes in cref attributes
+such as:
+
+<see cref="G {T}" />
+
+or, alternatively:
+
+<see cref="G &lt;T&gt;" />
+
+to refer to a generic class G <T>.
+
+However, when the Mono C# compiler encounters such cref attributes, it
+produces the following error message (CS1584):
+
+XML comment on 'SomeClass' has syntactically incorrect cref attribute `G {T}'
+
+or
+
+XML comment on 'SomeClass' has syntactically incorrect cref attribute `G <T>'
+
+respectively.
+
+Steps to reproduce the problem:
+1. Download the attached files Test.cs and Test2.cs
+2. Compile each file - individually - with the following options:
+
+    gmcs -target:library -warn:4 -warnaserror -doc:Test.xml Test.cs
+
+or
+
+    gmcs -target:library -warn:4 -warnaserror -doc:Test.xml Test2.cs
+
+3. Examine output from compiler
+
+Actual Results:
+
+Test.cs(17,18): error CS1584: XML comment on `Test.Test' has syntactically
+incorrect cref attribute `G {T}'
+Compilation failed: 1 error(s), 0 warnings
+
+or
+
+Test2.cs(17,18): error CS1584: XML comment on `Test.Test' has syntactically
+incorrect cref attribute `G <T>'
+Compilation failed: 1 error(s), 0 warnings
+m
+
+Expected Results:
+
+No errors in either case.
+
+How often does this happen? 
+
+Every time.
+
+Additional Information:
+
+The same files with the same options compile, without error, with Microsoft
+C# compiler (version 8.00.50727.42).


More information about the mono-bugs mailing list