digitalmars.D.bugs - [Issue 22070] New: importC: Error: string literal is not an lvalue
- d-bugmail puremagic.com (22/22) Jun 22 2021 https://issues.dlang.org/show_bug.cgi?id=22070
https://issues.dlang.org/show_bug.cgi?id=22070 Issue ID: 22070 Summary: importC: Error: string literal is not an lvalue Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: ibuclaw gdcproject.org It is an lvalue in C """ 6.5.1-4: A string literal is a primary expression. It is an lvalue with type as detailed in 6.4.5. """ Reduced test --- char(*var)[4] = &"123"; --
Jun 22 2021