[Bug c++/93617] Ternary operator calling a noreturn function should not cause type errors

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 6 17:21:00 GMT 2020


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yeah, the type of the ternary operator operand is one thing and noreturn
attribute is another.
You can use (throwError(), 0) or something similar.


More information about the Gcc-bugs mailing list