https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108029
--- Comment #2 from Li Shaohua <shaohua.li at inf dot ethz.ch> --- (In reply to Martin Liška from comment #1) > I can see the leak with both gcc-12 and gcc master. Interesting, because I tested using Compiler explorer. On my local machines, some gcc-12 -O0 won't report, but some do.