void solve(size_t N)(ref double[N+1][N]) {} void main() { double[3][2] m; solve!2(m); // works solve(m); // error } DMD: segmentation fault during compilation. LDC: compile-time error: integer constant expression expected instead of `N + 1`.
@dkorpel created dlang/dmd pull request #16822 "Fix bugzilla 24731 - IFTI cannot handle integer expressions" fixing this issue: - Fix bugzilla 24731 - IFTI cannot handle integer expressions https://github.com/dlang/dmd/pull/16822
dlang/dmd pull request #16822 "Fix bugzilla 24731 - IFTI cannot handle integer expressions" was merged into stable: - 43e174ddd4ab8068f13ea5ab4b2751121befdc08 by Dennis Korpel: Fix bugzilla 24731 - IFTI cannot handle integer expressions https://github.com/dlang/dmd/pull/16822
dlang/dmd pull request #16967 "Rebase stable6" was merged into master: - c6ef8b33d465ff28b337d1e6618553c5266907a9 by Dennis: Fix bugzilla 24731 - IFTI cannot handle integer expressions (#16822) https://github.com/dlang/dmd/pull/16967
dlang/dmd pull request #17069 "Merge stable" was merged into master: - 96d630c6445b352fb3671c25db584cd292864072 by Dennis: Fix bugzilla 24731 - IFTI cannot handle integer expressions (#16822) https://github.com/dlang/dmd/pull/17069