fix Issue 12506 - Wrongly private lambda to define global immutable array
Merge pull request #3419 from 9rnsr/fix12506

Issue 12506 - Wrongly private lambda to define global immutable array