https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99112
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from anlauf at gcc dot gnu.org --- Committed to mainline for gcc-11. This fixes the testcase, but there are related cases which are not addressed yet, see e.g. pr99585 which ICEs even without -fcheck=pointer. Thanks for the report!