[Bug c++/88907] Variadic template function deduction failure.
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 24 10:24:58 GMT 2022
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.
More information about the Gcc-bugs
mailing list