| Summary: | CFG doesn't handle range-based for | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Tomasz Wesolowski <kosashi> |
| Component: | cdt-codan | Assignee: | Elena Laskavaia <elaskavaia.cdt> |
| Status: | CLOSED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, eclipse.sprigogin, notifications+eclipse.org, yevshif |
| Version: | 8.0 | ||
| Target Milestone: | 8.6.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Until very recently ControlFlowGraphBuilder printed an error message to stderr when it encountered a range-based 'for' statement. I added a stub code to avoid that but I don't know how to build the graph properly. Alena, do you have time to take a look at it? *** Bug 441824 has been marked as a duplicate of this bug. *** Yeah, I can look at it commit d2f248dc70dce74281384a5ad1243c346a872081 Since 8.6 |
The CFG doesn't support this C++0x construct: void foo() { int arr[] = {1,2,3}; for (int i : arr) { ; // ... } }