digitalmars.D.bugs - [Issue 20062] New: Segfault
- d-bugmail puremagic.com (31/31) Jul 17 2019 https://issues.dlang.org/show_bug.cgi?id=20062
https://issues.dlang.org/show_bug.cgi?id=20062 Issue ID: 20062 Summary: Segfault Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: alex sunopti.com void main() { int g; struct A { bool a() { return (g == 0); } } auto b = new A[1]; b[0].a; } Segfaults at "return (g == 0);" on "gdc (Debian 8.3.0-6) 8.3.0" and on dlang.org online compiler, indicating a front end issue, so I reported it for dmd. --
Jul 17 2019