In this code: void foo() { []() { for (int num = 0; num < 53; num++) { bar(num); } }; } the second and third instances of 'num' in the for statement are highlighted as "declaration not found" errors, and not as uses of the 'int num' declaration. The 'num' in the bar() call is highlighted correctly. This only occurs if the for loop is inside a lambda body.
I just found this was already reported... *** This bug has been marked as a duplicate of bug 329620 ***