https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122050
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Keywords| |accepts-invalid,
| |rejects-valid
Last reconfirmed| |2025-09-24
Status|UNCONFIRMED |NEW
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think the current behavior of the C frontend doesn't make sense and is
inconsistent. Of course fixing it might break existing code ... I'd suggest to
emit a pedantic error if the 2nd last stmt isn't 'void' as well.
What does ({1;({});}) do?