https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109678
--- Comment #2 from Gery Emreis <geryemreis at gmail dot com> --- Its not just about compilation time but also about RAM usage. Compilation of variation of std::variant as in provided example consumes unholy amounts of RAM which in the end makes some files uncompilable on my system, because GCC consumes all available RAM and swap and makes my system hang.