https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108138
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |compile-time-hog
Target Milestone|--- |10.5
Known to work| |12.1.0
Summary|g++ 9+ takes 7-10x longer |[10/11 Regression] g++ 9+
|compiling constexpr |takes 7-10x longer
| |compiling constexpr
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like it was fixed in GCC 12.