I had this lambda somewhere in my code:
[](bool a, bool=true){ return !a;} }
and GCC 4.6 \"complained\" with this warning:
warn
Since C++14 it is allowed. It was found to be a defect long time ago: Default arguments for lambdas, and also Default arguments in lambda-expressions.