[Issue 21994] New: (char*)"string" fails to compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 5 09:12:11 UTC 2021
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 at puremagic.com
Reporter: bugzilla at digitalmars.com
void test()
{
char* q = (char*)"hello";
}
fails to recognize (char*) as the start of a cast.
--
More information about the Digitalmars-d-bugs
mailing list