https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88907
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-02-24 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: template<class... T> class Base{}; template<class... Ts> void error(Base<Ts> const &... args){} template<class... Ts, class = void> void error(Ts &&... args){} int main() { Base<int> const a; error(a); } ---- CUT --- Looks like GCC takes into account the default template argument incorrectly.