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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 7 13:01:47 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=339912

           Summary: GMCS: Generic XML cref attribute parsed incorrectly
           Product: Mono: Compilers
           Version: 1.2
          Platform: i686
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: mike.allen at durrusa.com
         QAContact: mono-bugs at ximian.com
          Found By: Customer


Created an attachment (id=182472)
 --> (https://bugzilla.novell.com/attachment.cgi?id=182472)
Test1.cs sample file

Description of Problem:

I'm using version 1.2.5.2 of the Mono gmcs compiler.

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 Test1.cs and Test2.cs
2. Compile each file - individually - with the following options:

    gmcs -target:library -warn:4 -warnaserror -doc:Test1.xml Test1.cs

or

    gmcs -target:library -warn:4 -warnaserror -doc:Test2.xml Test2.cs

3. Examine output from compiler

Actual Results:

Test1.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).


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list