- 
    
Bug
 - 
    Resolution: Done
 - 
    
P3: Somewhat important
 - 
    None
 - 
    Qt Creator 2.2.0, Qt Creator 3.1.0-beta
 - 
    None
 
- 
        68d6a762d914b0cfc1ede64161b14808d6e9b0ab
 
If you have the following code in Creator:
void foo()
{
    
}
int bar()
{
    struct Nested
    {
        int foo() { return 42; }
        int i;
        Nested()
        {
            i = foo(); /* line 14 */
        }
    };
    Nested n;
    n.i++; /* line 18 */
}
The C++ support is unable to properly understand the nested class bar()::Nested. For example, the following happens:
- Bad navigation on line 14:
	
- move the cursor to foo on line 14
 - press F2
 
- ACTUAL: Creator navigates to line 1
 - EXPECTED: Creator should have navigated to line 10
 
 - No completion on line 18:
	
- move the cursor to between n. and i on line 14
 - press Ctrl+Space
 
- ACTUAL: nothing happens
 - EXPECTED: Creator should have shown a drop-down list with elements "foo", "i" and "Nested"
 
 
- relates to
 - 
                    
QTCREATORBUG-5456 Enum values declared inside a function are not parsed
-         
 - Closed
 
 -         
 
- replaces
 - 
                    
QTCREATORBUG-9115 Code completion for QList isn't working anymore (locally defined type)
-         
 - Closed
 
 -         
 
| For Gerrit Dashboard: QTCREATORBUG-3620 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 57630,7 | C++: add support for local types | 2.8 | qt-creator/qt-creator | Status: ABANDONED | -1 | 0 | 
| 57764,2 | C++: add support for local types | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |