Issue 24731 - IFTI cannot handle integer expressions
Summary: IFTI cannot handle integer expressions
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2024-08-30 10:49 UTC by Georgy Markov
Modified: 2024-11-16 23:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Georgy Markov 2024-08-30 10:49:53 UTC
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 Dlang Bot 2024-08-31 10:50:07 UTC
@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 Dlang Bot 2024-08-31 13:20:41 UTC
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 Dlang Bot 2024-10-07 09:00:27 UTC
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 Dlang Bot 2024-11-16 23:27:12 UTC
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