testcrash.d: void bar()() { } struct P { void foo() { bar!(&this)(); } } dmd -o- -c testcrash --> segfault DMD64 D Compiler v2.071.1
Covered by DMD's PR https://github.com/dlang/dmd/pull/6430
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/fe278833a56768799bfa067ef357c1719fb2e17a Fix issue 16382 - Prevent a segfault when interpreting &this https://github.com/dlang/dmd/commit/c1d138cc3860ecf8cbe06090cc321f4d5502b6ee Merge pull request #6430 from LemonBoy/b16382 Fix issue 16382 - Prevent a segfault when interpreting &this
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/fe278833a56768799bfa067ef357c1719fb2e17a Fix issue 16382 - Prevent a segfault when interpreting &this https://github.com/dlang/dmd/commit/c1d138cc3860ecf8cbe06090cc321f4d5502b6ee Merge pull request #6430 from LemonBoy/b16382
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/fe278833a56768799bfa067ef357c1719fb2e17a Fix issue 16382 - Prevent a segfault when interpreting &this https://github.com/dlang/dmd/commit/c1d138cc3860ecf8cbe06090cc321f4d5502b6ee Merge pull request #6430 from LemonBoy/b16382