https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104530
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |12.0 CC| |jakub at gcc dot gnu.org Priority|P3 |P1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Started with r12-7128-gc6bb1db76b3ac127aff7dacf391fc1798a94bb7d The comparison is done before dereferencing pointer, but unlike the PR104288 case there is no call that could fail to return in between. I think PR104288 has been fixed on the 11 branch too, so the question is if this still works there.