[Issue 22376] New: importC: Error: cannot use non-constant CTFE pointer in an initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 10 12:59:04 UTC 2021


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

          Issue ID: 22376
           Summary: importC: Error: cannot use non-constant CTFE pointer
                    in an initializer
           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

---
char * const errmsg[10] = {
    ( char *)"need dictionary",
    ( char *)"stream end",
    ( char *)"",
    ( char *)"file error",
    ( char *)"stream error",
    ( char *)"data error",
    ( char *)"insufficient memory",
    ( char *)"buffer error",
    ( char *)"incompatible version",
    ( char *)""
};

--


More information about the Digitalmars-d-bugs mailing list