https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116961
--- Comment #9 from Iain Buclaw <ibuclaw at gcc dot gnu.org> --- Valgrind is happy with the reduced test after patch applied. $ valgrind ./gcc/d21 repro.d -quiet -dumpdir repro.o- -dumpbase repro.d -dumpbase-ext .d -mtune=generic -march=x86-64 -version -fsyntax-only -o /dev/null -imultiarch x86_64-linux-gnu -iprefix «build»/gcc/build/gcc/../lib/gcc/x86_64-pc-linux-gnu/15/ -isystem ./gcc/include -isystem ./gcc/include-fixed ==4062041== Memcheck, a memory error detector ==4062041== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==4062041== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info ==4062041== Command: ./gcc/d21 repro.d -quiet -dumpdir repro.o- -dumpbase repro.d -dumpbase-ext .d -mtune=generic -march=x86-64 -version -fsyntax-only -o /dev/null -imultiarch x86_64-linux-gnu -iprefix «build»/gcc/build/gcc/../lib/gcc/x86_64-pc-linux-gnu/15/ -isystem ./gcc/include -isystem ./gcc/include-fixed ==4062041== GNU D (GCC) version 15.0.1 20250227 (experimental) (x86_64-pc-linux-gnu) compiled by GNU C version 15.0.1 20250227 (experimental), GMP version 6.3.0, MPFR version 4.2.1, MPC version 1.3.1, isl version isl-0.26-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ==4062041== ==4062041== HEAP SUMMARY: ==4062041== in use at exit: 382,407 bytes in 625 blocks ==4062041== total heap usage: 4,495 allocs, 3,870 frees, 1,524,545 bytes allocated ==4062041== ==4062041== LEAK SUMMARY: ==4062041== definitely lost: 1,732 bytes in 40 blocks ==4062041== indirectly lost: 0 bytes in 0 blocks ==4062041== possibly lost: 32 bytes in 1 blocks ==4062041== still reachable: 380,643 bytes in 584 blocks ==4062041== suppressed: 0 bytes in 0 blocks ==4062041== Rerun with --leak-check=full to see details of leaked memory ==4062041== ==4062041== For lists of detected and suppressed errors, rerun with: -s ==4062041== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)