https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97321
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- > gcc t5.c -O2 -Wstrict-aliasing=2 t5.c: In function 'g': t5.c:5:32: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 5 | return f((unsigned char **)&p); | ^~ so it already works.