[Issue 22411] New: importC: Error: cannot implicitly convert expression of type 'const(char*)' to 'char*'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 17 17:09:07 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22411
Issue ID: 22411
Summary: importC: Error: cannot implicitly convert expression
of type 'const(char*)' to 'char*'
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
---
extern char * const errmsg[10];
void test()
{
char *msg = errmsg[6];
}
--
More information about the Digitalmars-d-bugs
mailing list