Avoid creating duplicate declarations for lambda parameters.

Authored by flherne on Aug 29 2017, 4:05 PM.

Description

Avoid creating duplicate declarations for lambda parameters.

Calling AstDefaultVisitor::visitLambda() was wrong in this case; the
parameters were visited twice, the first time outside the lambda's
context.

Add a testcase (lambda_argument_outside) for this. The crash test was
okay before, but failed with an earlier version of this patch that
didn't visit the body.

Details

Committed
flherneAug 29 2017, 4:25 PM
Parents
R53:26562ee30182: Merge branch 'master' into 5.2
Branches
Unknown
Tags
Unknown