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.