https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78462
Jonathan Wakely changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78462
--- Comment #3 from Andrew Pinski ---
Even this works in C++14:
int a(int b, auto wish1=2, const auto wish2=test)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78462
--- Comment #2 from Andrew Pinski ---
That is:
#include
const std::string test="wish";//global var or const, but const gives me
headaches
int a(int b, int wish1=2, const std::string wish2=test) {
}
Works just fine in C++ and always has.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78462
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|