https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104470
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >When I switch to c++17 mode compiler does not crash. yes because C++17 does not support deduction of template arguments of template alias's while C++20 does. Note clang does not implement that yet.