https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87984 --- Comment #12 from Segher Boessenkool <segher at gcc dot gnu.org> --- The lifetime of "a" ends where the for block ends. It is also wholly irrelevant here. If LLVM implement other semantics than GCC here, report that bug to LLVM.