This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69736] [4.9/5/6 Regression] "error: too few arguments to function" in c++14 but not c++11
- From: "ppalka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Feb 2016 23:21:02 +0000
- Subject: [Bug c++/69736] [4.9/5/6 Regression] "error: too few arguments to function" in c++14 but not c++11
- Auto-submitted: auto-generated
- References: <bug-69736-4 at http dot gcc dot gnu dot org/bugzilla/>
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)(); }