digitalmars.D.bugs - =?UTF-8?B?W0lzc3VlIDIzNzE5XSBOZXc6IHJ1bm5hYmxlL3Rlc3QyMjA3MS5j?=
- d-bugmail puremagic.com (34/34) Feb 15 2023 https://issues.dlang.org/show_bug.cgi?id=23719
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; } ``` --
Feb 15 2023