https://issues.dlang.org/show_bug.cgi?id=21171
Issue ID: 21171
Summary: Undefined identifier when alias inside static if.
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Reduced test.
globals.d
---
import identifier;
static if (0)
{
}
else
{
alias Uint64 = ulong;
alias Int64 = long;
}
alias sinteger_t = Int64;
alias uinteger_t = Uint64;
identifier.d
---
import globals;
struct Token
{
union
{
sinteger_t intvalue;
uinteger_t unsvalue;
}
}
---
--