[Mono-bugs] [Bug 76369][Nor] New - [GMCS] Obsolete error/warning is reported for attribute referenced only in XML doc

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Oct 8 07:07:08 EDT 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 gert.driesen at pandora.be.

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

--- shadow/76369	2005-10-08 07:07:08.000000000 -0400
+++ shadow/76369.tmp.3724	2005-10-08 07:07:08.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 76369
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] Obsolete error/warning is reported for attribute referenced only in XML doc
+
+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.


More information about the mono-bugs mailing list