Bug 23873 – [ICE] segfault on imported `static if ; else auto x`
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-05-01T23:25:56Z
Last change time
2023-05-16T12:28:56Z
Keywords
ice, pull
Assigned to
No Owner
Creator
Jan Jurzitza
Comments
Comment #0 by d.bugs — 2023-05-01T23:25:56Z
foo.d
```
struct Foo
{
import bar;
}
```
bar.d
```
static if ;
else auto x
```
interesting note: if `Foo` is a function and not an aggregate type, this doesn't ICE.
Comment #1 by dlang-bot — 2023-05-02T11:50:34Z
@RazvanN7 created dlang/dmd pull request #15168 "Fix Issue 23873 - [ICE] segfault on imported static if ; else auto x" fixing this issue:
- Fix Issue 23873 - [ICE] segfault on imported static if ; else auto x
https://github.com/dlang/dmd/pull/15168
Comment #2 by dlang-bot — 2023-05-03T08:08:13Z
dlang/dmd pull request #15168 "Fix Issue 23873 - [ICE] segfault on imported static if ; else auto x" was merged into stable:
- e6c2ecf729a84e38e6746ad23bfa9ecd0d38491c by RazvanN7:
Fix Issue 23873 - [ICE] segfault on imported static if ; else auto x
https://github.com/dlang/dmd/pull/15168
Comment #3 by dlang-bot — 2023-05-16T12:28:56Z
dlang/dmd pull request #15238 "merge stable" was merged into master:
- c2f8f32de55ec635e65d8451a6a805f2f3ac5b2f by Razvan Nitu:
Fix Issue 23873 - [ICE] segfault on imported static if ; else auto x (#15168)
https://github.com/dlang/dmd/pull/15238