I had this lambda somewhere in my code:
[](bool a, bool=true){ return !a;} }
and GCC 4.6 "complained" with this warning:
warning: default argument specified for lambda parameter [-pedantic]
Which is mightily unhelpful when you don't know why this is "bad". I consulted the FDIS n3290 and didn't find anything in 5.1.2 Lambda Expressions
with regards to default arguments and a lambda.
UPDATE: I filed a bug report here.
UPDATE2: OK, from now on I'm using -pedantic-errors
. -pedantic
only emits warnings, not errors.