Bug 24731 – IFTI cannot handle integer expressions

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-08-30T10:49:53Z
Last change time
2024-11-16T23:27:12Z
Keywords
pull
Assigned to
No Owner
Creator
Georgy Markov

Comments

Comment #0 by ogion.art — 2024-08-30T10:49:53Z
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`.
Comment #1 by dlang-bot — 2024-08-31T10:50:07Z
@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
Comment #2 by dlang-bot — 2024-08-31T13:20:41Z
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
Comment #3 by dlang-bot — 2024-10-07T09:00:27Z
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
Comment #4 by dlang-bot — 2024-11-16T23:27:12Z
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