https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123089
--- Comment #8 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #7) > So what? It is not UB to assign address of a local variable to a pointer, > even to store it into some global variable. It is UB to dereference that > pointer after the var leaves the scope (or maybe in strict reading even > compare it etc.). I thought we were hitting *h in the if.
