Bug 68463 - C++ autocompletion wrong when several classes with same names in different namespaces
Summary: C++ autocompletion wrong when several classes with same names in different na...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Code completion (show other bugs)
Version: 3.0.0b1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
: 108036 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-18 00:12 UTC by shift
Modified: 2006-12-30 16:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shift 2003-11-18 00:12:45 UTC
Version:           3.0.0b1 (using KDE 3.1.93 (CVS >= 20031111), SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.21-99-default

when i have two classes with same names in different namespaces, that 
when i expect hints of methods/fields list for an object of either of the classes, 
i see hints only for the class from the first namespace only. 

in other words: 
image the following C++ project: 

in file file2.cpp 
i have namespace called "secondary_space", and have class "Foo" inside it. 
in file file1.cpp 
i have namespace called "primary_space", and have class "Foo" inside it. 

then, in file file3.cpp, 
i type: 

namespace primary_space {
 void test() { 
 Foo obj1;
 obj.
}
};

OK. when i typed "obj.", i see the list of secondary_space::Foo class instead of primary. 
(or, if didnot work, try vice-versa -- namespace as secondary_space, and you will see hints for primary_space::Foo -- it depends)
Comment 1 Jens Dagerbo 2003-11-18 00:27:52 UTC
Confirmed in latest HEAD.
Comment 2 Matt Rogers 2005-09-23 05:35:10 UTC
*** Bug 108036 has been marked as a duplicate of this bug. ***
Comment 3 Amilcar do Carmo Lucas 2006-05-24 01:07:13 UTC
This should now work with KDevelop 3.4

Can you please retest ?
Comment 4 Andreas Pakulat 2006-12-30 16:12:45 UTC
Fixed in 3.4.