digitalmars.D.bugs - [Issue 23711] New: compilable/testcstuff1.c:63:1: error: invalid use
- d-bugmail puremagic.com (25/25) Feb 15 2023 https://issues.dlang.org/show_bug.cgi?id=23711
https://issues.dlang.org/show_bug.cgi?id=23711 Issue ID: 23711 Summary: compilable/testcstuff1.c:63:1: error: invalid use of 'restrict' Product: D Version: D2 Hardware: All OS: Linux Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: ibuclaw gdcproject.org When compiling the test with `gcc -std=c11 -fsyntax-only` compilable/testcstuff1.c:63:1: error: invalid use of ‘restrict’ 63 | _Static_assert(sizeof(const restrict volatile char volatile restrict const) == 1, "ok"); | ^~~~~~~~~~~~~~ Test content: ``` _Static_assert(sizeof(const restrict volatile char volatile restrict const) == 1, "ok"); ``` --
Feb 15 2023