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

            Bug ID: 69736
           Summary: [4.9/5/6 Regression] "error: too few arguments to
                    function" in c++14 but not c++11
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

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

Is accepted with c++11 but not with c++14.  This is what creduce came up with. 
clang++ accepts this code though it warns:
q.cc:1:23: warning: all paths through this function will call itself
[-Winfinite-recursion]

Reply via email to