https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83932
Bug ID: 83932 Summary: No diagnostic issued for missing default argument in lambda-expression Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- This code void f() { auto l = [](int i=1, int j) {}; } should give me a diagnostic about parameter "j" missing a default argument (or something). GCC (all versions tested, requires C++14 mode or later) remains petulantly silent.