[Issue 20969] New: alias to local in static
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 22 11:15:09 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20969
Issue ID: 20969
Summary: alias to local in static
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: john.loughran.colvin at gmail.com
void main()
{
int a;
static s = S!a();
s.bar();
}
struct S(alias q)
{
int b;
void bar()
{
b = q;
}
}
segfault reading q, it attempts to read address 0x8
same in all versions of dmd seen on run.dlang.io
--
More information about the Digitalmars-d-bugs
mailing list