www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2911] New: Odd anomaly of implicit conversions


           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.

Apr 29 2009