https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Yes, so this would be somehow tied to c_inhibit_evaluation_warnings as in we warn for 0 ? foo () : 2; if foo() wasn't declared but not for the div-by-zero here: 0 ? 1 / 0 : 2;