[Issue 22888] New: ImportC: Error: cannot cast `"123"` to `const(char)` at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 17 10:52:31 UTC 2022


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 at puremagic.com
          Reporter: trikkuz at gmail.com

This code is rejected:

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

--


More information about the Digitalmars-d-bugs mailing list