https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110257
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work|12.1.0 |12.3.0 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Works fast on the trunk: [apinski@xeond2 upstream-gcc-git]$ ~/upstream-gcc/bin/gcc -S -g t5.cc -std=c++20 -O3 -ftime-report Time variable usr sys wall GGC phase setup : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( 0%) 1770k ( 1%) phase parsing : 1.06 ( 39%) 0.47 ( 57%) 1.53 ( 43%) 63M ( 37%) phase lang. deferred : 1.62 ( 59%) 0.35 ( 42%) 1.98 ( 55%) 97M ( 58%) phase opt and generate : 0.04 ( 1%) 0.01 ( 1%) 0.04 ( 1%) 6431k ( 4%) phase last asm : 0.01 ( 0%) 0.00 ( 0%) 0.02 ( 1%) 377k ( 0%) phase finalize : 0.00 ( 0%) 0.00 ( 0%) 0.02 ( 1%) 0 ( 0%) |name lookup : 0.26 ( 10%) 0.10 ( 12%) 0.47 ( 13%) 3816k ( 2%) |overload resolution : 0.90 ( 33%) 0.22 ( 27%) 1.26 ( 35%) 61M ( 36%) garbage collection : 0.46 ( 17%) 0.00 ( 0%) 0.46 ( 13%) 0 ( 0%) callgraph construction : 0.04 ( 1%) 0.01 ( 1%) 0.04 ( 1%) 6428k ( 4%) preprocessing : 0.14 ( 5%) 0.09 ( 11%) 0.22 ( 6%) 1619k ( 1%) parser (global) : 0.17 ( 6%) 0.17 ( 20%) 0.29 ( 8%) 16M ( 10%) parser struct body : 0.15 ( 5%) 0.00 ( 0%) 0.17 ( 5%) 10M ( 6%) parser function body : 0.00 ( 0%) 0.01 ( 1%) 0.00 ( 0%) 221k ( 0%) parser inl. func. body : 0.04 ( 1%) 0.02 ( 2%) 0.10 ( 3%) 3111k ( 2%) parser inl. meth. body : 0.10 ( 4%) 0.05 ( 6%) 0.16 ( 4%) 6386k ( 4%) template instantiation : 1.41 ( 52%) 0.44 ( 53%) 1.84 ( 51%) 95M ( 57%) constant expression evaluation : 0.06 ( 2%) 0.01 ( 1%) 0.12 ( 3%) 1000k ( 1%) constraint normalization : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( 0%) 153k ( 0%) constraint satisfaction : 0.01 ( 0%) 0.00 ( 0%) 0.01 ( 0%) 414k ( 0%) varconst : 0.03 ( 1%) 0.00 ( 0%) 0.01 ( 0%) 0 ( 0%) symout : 0.12 ( 4%) 0.03 ( 4%) 0.14 ( 4%) 25M ( 15%) TOTAL : 2.73 0.83 3.60 169M Extra diagnostic checks enabled; compiler may run slowly. Configure with --enable-checking=release to disable checks.