| Summary: | C++ analysis cannot resolve variables declared in conditional statements | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Talin <viridia> |
| Component: | cdt-codan | Assignee: | CDT Codan Inbox <cdt-codan-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | Elena Laskavaia <elaskavaia.cdt> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, yevshif, zeratul976 |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
I can't reproduce that error. Can you provide a single standalone .cpp file which would show the problem? This has since been fixed (see bug 362976). *** This bug has been marked as a duplicate of bug 362976 *** |
Build Identifier: 20110615-0604 The C++ code analyzer reports that the symbol 'var' could not be resolved in the following statement: if (VariableDefn * var = dyn_cast<VariableDefn>(*it)) { // etc... } This appears to affect every case of a variable being declared in a conditional expression. Reproducible: Always