https://issues.dlang.org/show_bug.cgi?id=14782 --- Comment #1 from yazan.dabain at gmail.com --- Further reduction: struct Foo { void* a; int b; } Foo[1] fun() { Foo[1] a; return a; } void main() { auto result = fun(); } --