www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21994] New: (char*)"string" fails to compile


          Issue ID: 21994
           Summary: (char*)"string" fails to compile
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

void test()
    char* q = (char*)"hello";

fails to recognize (char*) as the start of a cast.

Jun 05 2021