https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90940

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |8.3.0
           Keywords|                            |ice-on-valid-code,
                   |                            |wrong-code
   Last reconfirmed|                            |2019-06-19
                 CC|                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|Miscompilation of ternary   |[9/10 Regression]
                   |operator with throw         |Miscompilation of ternary
                   |expression in return        |operator with throw
                   |statement                   |expression in return
                   |                            |statement
   Target Milestone|---                         |9.2
      Known to fail|                            |10.0, 9.1.0

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Confirmed, thanks for the minimal example.

The ICE started with r260272:

            PR c++/64372 - CWG 1560, gratuitous lvalue-rvalue conversion in ?:

            * call.c (build_conditional_expr_1): Don't force_rvalue when one
arm
            is a throw-expression.

Reply via email to