https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116286
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- template instantiation : 8.85 ( 19%) 1.46 ( 28%) 10.50 ( 20%) 1147M ( 32%) |overload resolution : 6.17 ( 13%) 0.74 ( 14%) 7.07 ( 13%) 525M ( 15%) |name lookup : 4.31 ( 9%) 0.55 ( 11%) 4.76 ( 9%) 53M ( 2%) stand out, so I would guess "well, C++ ...". The rest is flat, so you want to generate much code - it takes time.