← Back to index
|
Original Bugzilla link
Bug 22039 – ICE on infinite recursion in default parameter
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-18T17:54:31Z
Last change time
2023-03-03T08:25:24Z
Keywords
ice, ice-on-invalid-code, pull
Assigned to
No Owner
Creator
elpenguino+D
Comments
Comment #0
by elpenguino+D — 2021-06-18T17:54:31Z
``` int func(int x = func()) { return x; } ``` As of DMD 2.097, this results in `Error: unknown, please file report on issues.dlang.org`.
Comment #1
by razvan.nitu1305 — 2023-03-01T09:23:07Z
This is actually a 2.071.2 regression
Comment #2
by dlang-bot — 2023-03-01T10:38:57Z
@RazvanN7 created dlang/dmd pull request #14934 "Fix Issue 22039 - ICE on infinite recursion in default parameter" fixing this issue: - Fix Issue 22039 - ICE on infinite recursion in default parameter
https://github.com/dlang/dmd/pull/14934
Comment #3
by dlang-bot — 2023-03-03T08:25:24Z
dlang/dmd pull request #14947 "merge stable" was merged into master: - b9a4b2856f83a826fddecbe186a739d5e3113771 by Razvan Nitu: Fix Issue 22039 - ICE on infinite recursion in default parameter (#14934)
https://github.com/dlang/dmd/pull/14947