June 19, 2020 [Issue 20959] New: Indexing a pointer of a fwd-declared struct type is NOT a frontend error | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20959 Issue ID: 20959 Summary: Indexing a pointer of a fwd-declared struct type is NOT a frontend error Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: kinke@gmx.net struct S; ref foo(S* s) { static assert(__traits(compiles, s[1])); // should fail return s[1]; // ICE for LDC, for DMD: Error: struct `onlineapp.S` unknown size } -- |
Copyright © 1999-2021 by the D Language Foundation