[Issue 22265] New: importC: Error: cannot modify 'const' expression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 1 12:07:10 UTC 2021


          Issue ID: 22265
           Summary: importC: Error: cannot modify 'const' expression
           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

It looks like 'const char*' is being translated to 'const(char*)' instead of

Reduced test:
void test(const char *buf)
  int a = *buf++;


More information about the Digitalmars-d-bugs mailing list