Test code: ``` import std.stdio; class Bar { int[string] aa; alias aa this; } void main () { scope b = new Bar; b["Hello"] = 42; b.clear; // SEGV happens here, next line is never reached writeln("Oopsie"); } ``` This happens because 'clear' is defined as: > void clear(T : Value[Key], Value, Key)(T aa) And the code just blindly casts T to a `struct AA`: https://github.com/dlang/druntime/blob/1049bb806679436103f8174c1f77541d5ad99091/src/object.d#L2167-L2170
@Geod24 created dlang/druntime pull request #2927 "Fix issue 20559: AA.clear segfault when used with alias this" fixing this issue: - Fix issue 20559: AA.clear segfault when used with alias this https://github.com/dlang/druntime/pull/2927
dlang/druntime pull request #2927 "Fix issue 20559: AA.clear segfault when used with alias this" was merged into stable: - 261124ff0aeb6ac577421045e7fa99f261796316 by Geod24: Fix issue 20559: AA.clear segfault when used with alias this https://github.com/dlang/druntime/pull/2927