[Bug c++/69736] [4.9/5/6 Regression] "error: too few arguments to function" in c++14 but not c++11

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 18 23:21:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69736

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #6 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Seems to only happen when fn1 is not overloaded.  If it is overloaded then the
code is accepted in C++14:

void fn1(int, int);
void fn1(bool = true) { (fn1)(); }


More information about the Gcc-bugs mailing list