[Issue 21164] New: segfault on incomplete static if
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 15 17:47:58 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21164
Issue ID: 21164
Summary: segfault on incomplete static if
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: uplink.coder at gmail.com
Given the following files :
--- main.d:
import a;
import b;
auto GB(D!Q)
{
}
--- a.d
struct D(E)
{
void G() {
import d;
I;
}
}
--- b.d
import c;
enum N = O();
alias Q = R!(N, S);
--- c.d
enum S = 1;
struct O
{
}
struct R(O U, int W ) // extend to KPDateTime later
{
}
--- d.d
auto AB()
{
static if}
auto I()
{
AB;
}
dmd will segfault while trying to evaluate the static if condition.
--
More information about the Digitalmars-d-bugs
mailing list