[Issue 16699] New: [REG 2.070] stack corruption with scope(exit)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Nov 17 06:17:14 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16699
Issue ID: 16699
Summary: [REG 2.070] stack corruption with scope(exit)
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: wrong-code
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ag0aep6g at gmail.com
This is a further reduction of issue 16698. Filing separately because 16698 is
a phobos issue that can possibly be fixed by working around this compiler bug.
May be related to issue 16102.
Fails since 2.070.0.
----
ulong[1] parseDateRange()
{
scope(exit) {}
ulong[1] result;
result[0] = 0;
return result;
}
void main()
{
ulong[1] range = parseDateRange();
assert(range[0] == 0); /* fails; should pass */
}
----
--
More information about the Digitalmars-d-bugs
mailing list