[Mono-bugs] [Bug 80581][Cos] Changed - [GMCS] Unable to compare a struct to null

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jan 28 13:33:50 EST 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 miguel at ximian.com.


--- shadow/80581	2007-01-22 17:26:32.000000000 -0500
+++ shadow/80581.tmp.7910	2007-01-28 13:33:50.000000000 -0500
@@ -3,13 +3,13 @@
 Version: 1.2
 OS: GNU/Linux [Other]
 OS Details: 
 Status: NEW   
 Severity: Unknown
-Priority: Normal
+Priority: Cosmetic
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: pawel.sakowski at mindbreeze.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -44,6 +44,16 @@
 How pointless such a comparison is is beyond the scope of this report.
 ------- Additional Comments From gert.driesen at pandora.be  2007-01-22 17:26 -------
 Note: csc 1.x reports the same error, but using csc 2.x it compiles 
+------- Additional Comments From miguel at ximian.com  2007-01-28 13:33 -------
+I can not find a place in the spec that addresses this issue (the
+closest I found was related to nullable types).
+I do not want to support this without a good reason, because the code
+above is masking a real problem: that comparing "Now" to null is
+always going to be false (always, not sometimes, but always).

More information about the mono-bugs mailing list