[Issue 15279] New: dchar is treated as char in case range

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Nov 2 15:20:04 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15279

          Issue ID: 15279
           Summary: dchar is treated as char in case range
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: acehreli at yahoo.com

void main() {
    dchar d;

    switch (d) {
    case '\u0000': .. case '\u0101':
        break;
    }
}

Error: had 257 cases which is more than 256 cases in case range

Same problem with wchar...

Ali

--


More information about the Digitalmars-d-bugs mailing list