[Bug c++/69736] [4.9/5/6 Regression] "error: too few arguments to function" in c++14 but not c++11
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 9 18:13:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69736
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(fn1)();
is no longer the same as fn1();
But rather it returns an rvalue reference. So it no longer includes the
default arguments as part of the type. That is function types don't have
default arguments.
More information about the Gcc-bugs
mailing list