https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101906
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> --- FWIW one workaround is to use a class template instead of an alias template, e.g. -template<int> using voidify = void; +template<int> struct voidify {};