[Issue 15629] [REG2.066.0] wrong code with "-O -inline" but correct with "-O"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Feb 8 03:21:38 PST 2016


https://issues.dlang.org/show_bug.cgi?id=15629

--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Kenji Hara from comment #4)
> Sorry, the reduced code cannot reproduce exactly same regression with the
> original.
> I'll open one more issue for that.

Ah, I got understanding. The reduced case in comment#3 has generated wrong code
with -inline, since the change by PR#4474:
https://github.com/D-Programming-Language/dmd/pull/4474

However, comment#3 and comment#4 are essentially same. The only one difference
is the parenthesis on stdout.lockingTextWriter(); in writeln template function.
So, this wrong-code issue in the comment#3 case was hidden by issue 14264, and
it's *fixed* by PR#4474. Therefore the two cases can hit this issue with
current master.

--


More information about the Digitalmars-d-bugs mailing list