Thread overview
[Issue 21325] Wrong code with -release -inline -O
2 days ago
Iain Buclaw
2 days ago
https://issues.dlang.org/show_bug.cgi?id=21325

thomas.bockman@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |regression

--- Comment #1 from thomas.bockman@gmail.com ---
My example fails on 2.094.1 beta, but works on 2.093 so I am marking this as a regression.

--
2 days ago
https://issues.dlang.org/show_bug.cgi?id=21325

thomas.bockman@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend, wrong-code

--
2 days ago
https://issues.dlang.org/show_bug.cgi?id=21325

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
-release is irrelevant in the issue, replacing `return 1` with `assert(0)` triggers with just -O -inline.

Regression was caused by this commit https://github.com/dlang/dmd/pull/11682

--