February 15, 2023 [Issue 23719] New: runnable/test22071.c:22:16: error: ‘abc’ is a pointer; did you mean to use ‘->’? | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23719 Issue ID: 23719 Summary: runnable/test22071.c:22:16: error: ‘abc’ is a pointer; did you mean to use ‘->’? 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` runnable/test22071.c: In function ‘main’: runnable/test22071.c:22:16: error: ‘abc’ is a pointer; did you mean to use ‘->’? 22 | int j = abc.b; | ^ | -> Original test: ``` struct S { int a, b; }; struct S *abc = &(struct S){ 1, 2 }; int main() { int j = abc.b; if (j != 2) return 1; return 0; } ``` -- |
Copyright © 1999-2021 by the D Language Foundation