[patch] Fix base class lookup when base class has same name
Nicolai Haehnle
nhaehnle at gmail.com
Mon Feb 15 08:21:50 UTC 2010
Hello,
given the following code:
struct A {};
namespace B {
struct A : ::A {};
}
KDevelop mistakenly believes that B::A is its own base class and thus
causes cyclic dependencies. I have attached two patches, one to add a
test to test_duchain.cpp, and another one with a proposed fix. The
test from the first patch fails with SVN trunk, but passes with the
second patch applied. The second patch fixes my problem, though given
how little I know about the duchain code, it may not be the Right Way
of fixing it.
Please review and apply if good.
cu,
Nicolai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cppduchain-baseclass-testcase.patch
Type: text/x-patch
Size: 2475 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100215/ae16d8a4/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cppduchain-baseclass-fix.patch
Type: text/x-patch
Size: 1547 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100215/ae16d8a4/attachment-0001.patch>
More information about the KDevelop-devel
mailing list