Bug 183843 - Qualified base classes are not recognized in the index
Summary: Qualified base classes are not recognized in the index
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.0 RC0   Edit
Assignee: Bryan Wilkinson CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-04-24 15:08 EDT by Bryan Wilkinson CLA
Modified: 2008-06-20 12:06 EDT (History)
0 users

See Also:


Attachments
proposed patch (3.79 KB, patch)
2007-04-24 15:45 EDT, Bryan Wilkinson CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Wilkinson CLA 2007-04-24 15:08:11 EDT
Example:

  //header file

  class B {
    class BB {
    public:
      int field;
    };
  };
  
  class A : public B::BB {};

  //source file

  void foo() {
    A c;
    c.field; //field resolves to a problem binding
  }

In the index, class A has no base classes.  There is no problem binding if A's base class is B instead of B::BB and 'field' is in B instead of B::BB.
Comment 1 Bryan Wilkinson CLA 2007-04-24 15:45:36 EDT
Created attachment 64782 [details]
proposed patch

Handle qualified names in PDOMCPPLinkage.onCreateName(...)
Includes regression test.
Comment 2 Markus Schorn CLA 2007-04-25 03:35:34 EDT
Thanks Bryan, I have applied the patch.