Bug 319230 (MONO76369) - [GMCS] Obsolete error/warning is reported for attribute referenced only in XML doc
Summary: [GMCS] Obsolete error/warning is reported for attribute referenced only in XM...
Status: RESOLVED FIXED
Alias: MONO76369
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Marek Safar
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-08 14:07 UTC by Gert Driesen
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:33:55 UTC


---- Reported by gert.driesen@pandora.be 2005-10-08 07:07:08 MST ----

GMCS (built from mono svn) reports error CS0619 (or warning CS0618,
depending on the value of the IsError property on ObsoleteAttribute) if an
attribute is marked obsolete, but is only referenced in XML docs.

To reproduce, compile the following code snippet (using gmcs
/target:library /doc:test.xml test.cs):

using System;

/// <summary><see cref="AAttribute" /></summary>
[Obsolete("whatever", true)]
public class AAttribute : Attribute {
}

Actual result:

error CS0619: `AAttribute' is obsolete: `whatever'
Compilation failed: 1 error(s), 0 warnings

Expected result:

Succesful compilation (without warnings)

Both csc and mcs yield the expected result.

This issue is preventing NAnt from getting compiled using gmcs.



---- Additional Comments From marek.safar@seznam.cz 2005-11-11 09:32:47 MST ----

Fixed in SVN (mcs only)



---- Additional Comments From gert.driesen@pandora.be 2005-11-11 09:41:37 MST ----

I reported this issue again gmcs, not mcs. It was working just fine 
in mcs (last time I checked).




---- Additional Comments From goetz.waschk@gmail.com 2005-12-12 05:31:55 MST ----

This is still not fixed in mono 1.1.10.1.



---- Additional Comments From marek.safar@seznam.cz 2006-04-07 17:53:05 MST ----

The issue was solved and during development and it is working with SVN
HEAD.


Unknown operating system unknown. Setting to default OS "Other".