Bug 18970 – DMD segfault due to opDispatch

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-11T15:55:35Z
Last change time
2020-11-16T15:09:50Z
Assigned to
No Owner
Creator
Luís Marques

Comments

Comment #0 by luis — 2018-06-11T15:55:35Z
This crashes DMD: struct S { this(int) { this.yyy; } auto opDispatch(string name)() { alias T = typeof(x); static if(is(T.U)) {} } }
Comment #1 by greensunny12 — 2018-06-12T16:53:42Z
Comment #2 by github-bugzilla — 2018-06-19T07:20:39Z
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
Comment #3 by dlang-bot — 2020-11-16T15:09:50Z
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