https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100086
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[11/12 Regression] spurious |[11 Regression] spurious |-Wnonnull with |-Wnonnull with |__builtin_expect |__builtin_expect Known to fail| |11.2.1 Priority|P3 |P2 Keywords| |needs-bisection Known to work| |12.0 --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- The testcase no longer reproduces the issue with GCC 12 for me, GCC 11 still does. I wonder what fixed it.