Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • New - gmcs generates wrong codefor comparing nullable types

    0 answers - 1879 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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 vargaz (AT) gmail (DOT) com.
    shadow/783242006-05-07 12:19:17.000000000 -0400
    shadow/78324.tmp.55852006-05-07 12:19:17.000000000 -0400
    @@ -0,0 +1,41 @@
    +Bug#: 78324
    +Product: Mono: Compilers
    +Version: unspecified
    +S:
    +S Details:
    +Status: NEW
    +Resolution:
    +Severity:
    +Priority: Normal
    +Component: C#
    +AssignedTo: rharinath (AT) novell (DOT) com
    +ReportedBy: vargaz (AT) gmail (DOT) com
    +QAContact: mono-bugs (AT) ximian (DOT) com
    +TargetMilestone:
    +URL:
    +Cc:
    +Summary: [GMCS] gmcs generates wrong code for comparing nullable types
    +
    +Currently, gmcs creates code which calls the op_Equality and op_Inequality
    +operators defined in the Nullable class, however, these methods no longer
    +exist in in net 2.0 RTM, so gmcs compiled programs which use these methods
    +can't be run on the MS runtime. Instead of these methods, it should generate
    +code to call the HasValue (when comparing to null), or the
    +GetVDefault methods.
    +
    +Testcase:
    +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    +using System;
    +
    +class M {
    + static void f (int? x, int? y) {
    + bool isnull = x == null;
    + bool eq = x == y;
    + }
    +
    + static void Main () {
    + f (1, 1);
    + f (null, null);
    + }
    +}
    +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    mono-bugs maillist - mono-bugs (AT) lists (DOT) ximian.com

Re: New - gmcs generates wrong codefor comparing nullable types


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 0 =
QUESTION ON "Development"

EMSDN.COM