[Issue 16189] Optimizer bug, with simple test case
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jun 21 11:54:38 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16189
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
CC| |ag0aep6g at gmail.com
OS|Windows |All
--- Comment #1 from ag0aep6g at gmail.com ---
Slightly more reduced:
----
void main()
{
ubyte[9][1] data;
size_t a = 0;
loop:
data[0] = data[a];
a--;
bool b = false;
if (b) goto loop;
assert(a == -1); // Fails with -O
}
----
Also happens on Linux.
--
More information about the Digitalmars-d-bugs
mailing list