This crashes DMD: struct S { this(int) { this.yyy; } auto opDispatch(string name)() { alias T = typeof(x); static if(is(T.U)) {} } }
PR https://github.com/dlang/dmd/pull/8354
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/80473094e3213868b00a9502265839f7e53856e9 Fix Issue 18970 - DMD segfault due to opDispatch https://github.com/dlang/dmd/commit/42e7a143f9d83023fd7e55c16b2ecdbcdfea5d4a Merge pull request #8354 from wilzbach/fix-18970 Fix Issue 18970 - DMD segfault due to opDispatch
dlang/dmd pull request #11971 "[dmd-cxx] Backport fixes for Issue 18970 and 21164" was merged into dmd-cxx: - 8a6d6b5945817134262387f3417be1d7d322df4b by Sebastian Wilzbach: Fix Issue 18970 - DMD segfault due to opDispatch https://github.com/dlang/dmd/pull/11971