Bug 14606 – [REG2.067.0] Bad code with -inline and structs
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2015-05-19T00:02:00Z
Last change time
2015-06-17T21:05:28Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0 by dlang-bugzilla — 2015-05-19T00:02:20Z
Crashes on Windows with -m64 -inline:
////////// test.d /////////
struct S
{
this(long stdTime)
{
_stdTime = stdTime;
}
long _stdTime;
}
S getS()
{
S sysTime = S(0);
return sysTime;
}
struct T
{
this(string)
{
uint[3] arr;
s = getS();
}
S s;
}
void main()
{
T(null);
}
///////////////////////////
Introduced in https://github.com/D-Programming-Language/dmd/pull/3979