https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119387
--- Comment #13 from fiesh at zefix dot tv --- (In reply to Jakub Jelinek from comment #12) > Or if it is var tracking or statement frontiers, you can try -O2 -g > -fno-variable-tracking-assignments and/or -O2 -g -gno-statement-frontiers. % time g++-14 -w -std=c++20 -O2 -c -g -fno-var-tracking-assignments -gno-statement-frontiers b.ii g++-14 -w -std=c++20 -O2 -c -g -fno-var-tracking-assignments b.ii 540.60s user 8.04s system 99% cpu 9:08.89 total It's somewhat better but still quite far from good. -g1 is good though: % time g++-14 -w -std=c++20 -O2 -c -g1 b.ii g++-14 -w -std=c++20 -O2 -c -g1 b.ii 113.75s user 7.32s system 99% cpu 2:01.11 total