https://issues.dlang.org/show_bug.cgi?id=10223
--- Comment #1 from Wyatt <wyatt....@gmail.com> --- An NG post reminded me of this, so I just tested it on 2.067.1 and the output is rather different: wyatt@Yue ~/tmp/d $ rdmd ./issue10223.d bar Segmentation fault wyatt@Yue ~/tmp/d $ Okay, so it compiles now, but still doesn't work. We don't get nice things on Linux, so I tried it on my Windows workstation over lunch and found it's just been turned from a disappointment at compile time to a knife in the back at runtime: [0s] jwe29@PC91534 ~/tmp $ rdmd ./issue10223.d object.Error@(0): Access Violation ---------------- 0x0042B626 0x00405141 0x00404667 0x004073D2 0x004021B1 0x0040B5E6 0x0040B5BB 0x0040B4D3 0x0040750B 0x7480337A in BaseThreadInitThunk 0x76F28FE2 in RtlInitializeExceptionChain 0x76F28FB5 in RtlInitializeExceptionChain === Bypassed === std.variant.VariantException@std\variant.d(1445): Variant: attempting to use incompatible types immutable(char)[] and std.variant.VariantN!20u.VariantN ---------------- 0x004050E6 0x00404667 0x004073D2 0x004021B1 0x0040B5E6 0x0040B5BB 0x0040B4D3 0x0040750B 0x7480337A in BaseThreadInitThunk 0x76F28FE2 in RtlInitializeExceptionChain 0x76F28FB5 in RtlInitializeExceptionChain object.Error@(0): Access Violation ---------------- 0x0042B626 0x00405141 0x00404667 0x004073D2 0x004021B1 0x0040B5E6 0x0040B5BB 0x0040B4D3 0x0040750B 0x7480337A in BaseThreadInitThunk 0x76F28FE2 in RtlInitializeExceptionChain 0x76F28FB5 in RtlInitializeExceptionChain === ~Bypassed === bar [2s] jwe29@PC91534 ~/tmp $ --