https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105499
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |c Status|UNCONFIRMED |NEW Last reconfirmed| |2022-10-31 Ever confirmed|0 |1 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed reduced testcase: void f (void *q) { __extension__ int *p1 = q; } At first I thought it was an issue with the statement expression but nope, it is just __extension__ vs -Wc++-compat .