https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96254
Bug ID: 96254 Summary: d: ICE using non-local variable: internal compiler error: Segmentation fault Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gdcproject dot org Target Milestone: --- --- struct map(alias fun) { @property run() { } } struct Task(Args) { Args _args; } template reduce(functions...) { auto reduce(Args)(Args args) { alias RTask = Task!(typeof(args)); auto task = RTask(); } } void main() { immutable delta = 1; reduce!"a + b"(map!({ immutable x = delta; })()); }