Created attachment 1077 [details] repro case See attached repro case
Reduced: struct S7545 { uint id; alias id this; } void test7545() { auto id = 0 ? S7545() : -1; } Workaround: auto id = 0 ? S7545() : cast(uint)-1;
https://github.com/D-Programming-Language/dmd/pull/740
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5da25b1cfd43d9fd61cc2a3ecba7d6388735ab1c Merge pull request #740 from yebblies/issue7545 Issue 7545 - ICE(cast.c) Merge integral types through alias this