| Summary: | Incorrect 'declaration not found' of for-loop variable when inside lambda | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Drew Noakes <kde> |
| Component: | Language Support: CPP (old) | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | nalvarez, sumeettulsani1 |
| Priority: | NOR | ||
| Version First Reported In: | 4.6.0 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 5.0.0 | |
| Sentry Crash Report: | |||
| Attachments: | Bug has been resolved | ||
*** Bug 340407 has been marked as a duplicate of this bug. *** Created attachment 98501 [details]
Bug has been resolved
The attached bug has been resolved and does not occur anymore as suggested in the attached file.
Thanks for the feedback. Very useful. |
To reproduce, create this function. void test() { []() { { for (int n = 0; n < 10; n++) { } } }; } The symbol 'n' is highlighted as being unknown in expressions 'n < 10' and 'n++'. This does not occur if the loop is moved outside the lambda.