Bug 22228 – [CTFE] taking address of immutable in frame function causes ICE on Unix platforms

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2021-08-20T14:21:05Z
Last change time
2021-09-07T22:52:02Z
Keywords
pull
Assigned to
No Owner
Creator
Ate Eskola

Comments

Comment #0 by Ajieskola — 2021-08-20T14:21:05Z
--- auto f() { immutable int i; auto p = (() => &i)(); return 0; } enum ctfeInvocation = f; --- This results in an ICE on latest DMD:s if running with Linux, FreeBSD or Darwin. It has regressed only recently, probably after latest stable release as I'm unable to reproduce on run.dlang.io Blocking https://github.com/dlang/phobos/pull/8202
Comment #1 by dlang-bot — 2021-08-23T12:48:08Z
@RazvanN7 created dlang/dmd pull request #13005 "Fix Issue 22228 - [CTFE] taking address of immutable in frame functio[CTFE] taking address of immutable in frame function causes ICE on Unix platform" fixing this issue: - Fix Issue 22228 - [CTFE] taking address of immutable in frame function causes ICE on Unix platform https://github.com/dlang/dmd/pull/13005
Comment #2 by dlang-bot — 2021-08-23T14:42:55Z
@BorisCarvajal created dlang/dmd pull request #13007 "Fix Issue 22228 - [CTFE] taking address of immutable in frame function causes ICE on Unix platforms" fixing this issue: - Fix Issue 22228 - [CTFE] taking address of immutable in frame function causes ICE on Unix platforms https://github.com/dlang/dmd/pull/13007
Comment #3 by dlang-bot — 2021-08-23T17:02:28Z
dlang/dmd pull request #13007 "Fix Issue 22228 - [CTFE] taking address of immutable in frame function causes ICE on Unix platforms" was merged into stable: - 58974d60621f93bd948395305f64eea791ca19a7 by Boris Carvajal: Fix Issue 22228 - [CTFE] taking address of immutable in frame function causes ICE on Unix platforms https://github.com/dlang/dmd/pull/13007
Comment #4 by dlang-bot — 2021-09-07T22:52:02Z
dlang/dmd pull request #13053 "merge stable" was merged into master: - 576b034f35d134fa4f7428bc9fd6eeab427f5c38 by Boris Carvajal: Fix Issue 22228 - [CTFE] taking address of immutable in frame function causes ICE on Unix platforms https://github.com/dlang/dmd/pull/13053