https://bugs.kde.org/show_bug.cgi?id=370334

            Bug ID: 370334
           Summary: Implicitly declared class considered as subclass
           Product: kdevelop
           Version: git master
          Platform: Other
                OS: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: k...@stierand.com

class Test {
public:
    class Test2* data; // hover over Test2 shows class as Test::Test2
(unresolved forward-declaration) 
};

class Test2 // hover over Test2 shows class as Test2
{
public:
    int integer;
};

int main(int,char**)
{
    Test t;
    t.data = new Test2; // hover over Test2 shows class as Test::Test2
(unresolved forward-declaration) 
    return t.data->integer;
}


Reproducible: Always

Steps to Reproduce:
1. Paste code into editor
2. hover over Test2 in class definition of Test
3. hover over Test2 in main function


Actual Results:  
Step 2: class is shown as Test::Test2 (unresolved forward-declaration) 
Step 3: class is shown as Test::Test2 (unresolved forward-declaration)


Expected Results:  
Step 2: class is shown as Test2 or ::Test2  (unresolved forward-declaration)
Step 3: class is shown as Test2 or ::Test2 and can be resolved

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to