The below code causes DMD to go tits up: struct S1(T...) { auto fun() { pragma(msg, &T[0]); } } struct S2 { void gun(); S1!gun overloaded; }
@Basile-z created dlang/dmd pull request #10123 "fix issue 19295 - ICE when taking address of member function passed as template parameter" fixing this issue: - fix issue 19295 - ICE when taking address of member function passed as template parameter https://github.com/dlang/dmd/pull/10123
This was even a very old reg (2.064)
dlang/dmd pull request #10123 "fix issue 19295 - ICE when taking address of member function passed as template parameter" was merged into stable: - 5384aeeaf3f39c05ec4cebd0e42e0bac090153a4 by Basile Burg: fix issue 19295 - ICE when taking address of member function passed as template parameter https://github.com/dlang/dmd/pull/10123