https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96077
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- This is sneaky: int main () { enum { a = true ? 2 : (3 /* missing ")" here */ } l_e; if (a != 2) __builtin_abort (); } we never reported the error and 'a' was set to 0 instead of 2. I plan to poke more.