www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22888] New: ImportC: Error: cannot cast `"123"` to

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

          Issue ID: 22888
           Summary: ImportC: Error: cannot cast `"123"` to `const(char)`
                    at compile time
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: trikkuz gmail.com

This code is rejected:

```
const char str[][4] = {"123"};
```

--
Mar 17 2022