https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78462
Bug ID: 78462 Summary: feature request: need function default arguments Product: gcc Version: 6.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jmichae3 at yahoo dot com Target Milestone: --- function default arguments are needed. I find that in 6.2.0 and earlier, it does not work. example: #include <string> const std::string test="wish";//global var or const, but const gives me headaches a(int b, int wish1=2, const wish2=test) { ... } this would be SO useful in ANSI C and in C++ if it worked.