https://issues.dlang.org/show_bug.cgi?id=8068 --- Comment #4 from hsteoh at quickfur.ath.cx --- Unable to reproduce bug in git HEAD (Linux/x86_64), for both code examples (including the 3rd variant). Perhaps the codegen bug has been fixed since? --