Bugzilla – Bug 319230
[GMCS] Obsolete error/warning is reported for attribute referenced only in XML doc
Last modified: 2007-09-15 21:24:23 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".