https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108029
--- Comment #3 from Li Shaohua <shaohua.li at inf dot ethz.ch> --- (In reply to Li Shaohua from comment #2) > (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. Specifically, gcc-12.1.1 won't report, but gcc-12.1.0 does.