put back diagnostics when flexible members are captured
in lambdas.