mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
Fix for 235196.
This commit is contained in:
parent
b0780772c9
commit
0ff272e50e
3 changed files with 19 additions and 18 deletions
|
@ -5645,7 +5645,7 @@ public class AST2CPPTests extends AST2BaseTest {
|
||||||
// using ns::A;
|
// using ns::A;
|
||||||
//
|
//
|
||||||
// class B: public A {};
|
// class B: public A {};
|
||||||
public void _testBug235196() throws Exception {
|
public void testBug235196() throws Exception {
|
||||||
parseAndCheckBindings(getAboveComment());
|
parseAndCheckBindings(getAboveComment());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1517,8 +1517,9 @@ public class CPPSemantics {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (candidate != null) {
|
if (candidate != null) {
|
||||||
if (candidate instanceof IType == false && candidate instanceof ICPPNamespace == false
|
if (!(candidate instanceof IType) && !(candidate instanceof ICPPNamespace) &&
|
||||||
&& LookupData.typesOnly(name)) {
|
!(candidate instanceof ICPPUsingDeclaration) &&
|
||||||
|
LookupData.typesOnly(name)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue