https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115461
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > Does it work with upstream (LLVM)? I don't think so; I've tried Fedora 40 clang: $ clang k.c -fsanitize=leak; ./a.out and it also didn't report anything. So probably we need an LLVM bug as well?