digitalmars.D.bugs - [Issue 20056] New: DMD Segfault in 2.087
- d-bugmail puremagic.com (34/34) Jul 16 2019 https://issues.dlang.org/show_bug.cgi?id=20056
https://issues.dlang.org/show_bug.cgi?id=20056 Issue ID: 20056 Summary: DMD Segfault in 2.087 Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: john.loughran.colvin gmail.com The following code segfaults the compiler. I suspect https://github.com/dlang/dmd/pull/9282 was the cause but Digger was unable to bisect usefully struct Def(alias fn) { alias func = alias_selector!(fn).VOverloads[0]; } template alias_selector(alias fn) { alias VOverloads = __traits(getOverloads, __traits(parent, fn), __traits(identifier, fn)); } void init_rangewrapper() { Def!(RangeWrapper.iter).func; } struct RangeWrapper { void iter() { } } --
Jul 16 2019