www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22892] New: importC: dereferencing array as pointer is not

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

          Issue ID: 22892
           Summary: importC: dereferencing array as pointer is not
                    supported
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ImportC, rejects-valid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: duser neet.fi

char buf[1];
void fn() { char c = *buf; }

Error: using `*` on an array is no longer supported; use `*(buf).ptr` instead

--
Mar 17 2022