[Issue 20056] New: DMD Segfault in 2.087
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 16 12:33:30 UTC 2019
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 at puremagic.com
Reporter: john.loughran.colvin at 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() { }
}
--
More information about the Digitalmars-d-bugs
mailing list