Thread overview
[Issue 21479] ternary operator returns wrong val with ref return
Dec 13, 2020
kinke
Dec 14, 2020
Iain Buclaw
Dec 14, 2020
Iain Buclaw
Dec 14, 2020
Dlang Bot
Dec 15, 2020
Dlang Bot
Dec 20, 2020
Dlang Bot
December 13, 2020
https://issues.dlang.org/show_bug.cgi?id=21479

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend
                 CC|                            |kinke@gmx.net

--- Comment #1 from kinke <kinke@gmx.net> ---
ICE with GDC; works with LDC.

--
December 14, 2020
https://issues.dlang.org/show_bug.cgi?id=21479

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to kinke from comment #1)
> ICE with GDC; works with LDC.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98277

--
December 14, 2020
https://issues.dlang.org/show_bug.cgi?id=21479

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
One underlying issue with the constructed AST is that Side.left is not constant propagated, this differs with other kinds of expressions/statements that use enum members.  They always send expanded literals to the back-end.

--
December 14, 2020
https://issues.dlang.org/show_bug.cgi?id=21479

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #12027 "fix Issue 21479 - ternary operator returns wrong val with ref return" fixing this issue:

- fix Issue 21479 - ternary operator returns wrong val with ref return

https://github.com/dlang/dmd/pull/12027

--
December 15, 2020
https://issues.dlang.org/show_bug.cgi?id=21479

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12027 "fix Issue 21479 - ternary operator returns wrong val with ref return" was merged into stable:

- 56fd37bdb321f24019966e9d65ba76df60564561 by Iain Buclaw:
  fix Issue 21479 - ternary operator returns wrong val with ref return

https://github.com/dlang/dmd/pull/12027

--
December 20, 2020
https://issues.dlang.org/show_bug.cgi?id=21479

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12040 "merge stable" was merged into master:

- d0b16ff78f117e740d5768d49b617b62e4897b82 by Iain Buclaw:
  fix Issue 21479 - ternary operator returns wrong val with ref return

https://github.com/dlang/dmd/pull/12040

--