www.digitalmars.com         C & C++   DMDScript  

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

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

          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