April 29, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2911

           Summary: Odd anomaly of implicit conversions
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: andrei@metalanguage.com


void main() {
    char a;
    wchar c;
    a = c;
    const wchar c1;
    a = c1;
}

The first conversion makes it, the second doesn't. Either both should succeed or both should fail. Obviously, the right choice is to make both fail. This completely messes some generic code I'm trying to write. I need to special case not only around the bug, but also around the bug in the bug.


-- 

June 12, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2911


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |FIXED


--- Comment #1 from yebblies <yebblies@gmail.com> 2011-06-12 14:09:40 PDT ---
Both statements currently error (dmd 2.053)

testx.d(4): Error: cannot implicitly convert expression (c) of type wchar to
char
testx.d(6): Error: cannot implicitly convert expression ('\U0000ffff') of type
const(wchar) to char

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------