https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95714
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|UNCONFIRMED |NEW Last reconfirmed| |2021-05-30 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- C++ front-end does a little better than the C front-end now: apinski@xeond:~/src/upstream-gcc$ ~/upstream-gcc/bin/gcc t887.c t887.c: In function ‘main’: t887.c:5:3: error: size mismatch in argument 2 of ‘__atomic_load’ 5 | __atomic_load(&c, &i, __ATOMIC_SEQ_CST); | ^~~~~~~~~~~~~ apinski@xeond:~/src/upstream-gcc$ ~/upstream-gcc/bin/g++ t887.c t887.c: In function ‘int main()’: t887.c:5:16: error: size mismatch in argument 2 of ‘__atomic_load’ 5 | __atomic_load(&c, &i, __ATOMIC_SEQ_CST); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ Confirmed.