mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +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;
|
||||
//
|
||||
// class B: public A {};
|
||||
public void _testBug235196() throws Exception {
|
||||
public void testBug235196() throws Exception {
|
||||
parseAndCheckBindings(getAboveComment());
|
||||
}
|
||||
|
||||
|
|
|
@ -1517,8 +1517,9 @@ public class CPPSemantics {
|
|||
return null;
|
||||
}
|
||||
if (candidate != null) {
|
||||
if (candidate instanceof IType == false && candidate instanceof ICPPNamespace == false
|
||||
&& LookupData.typesOnly(name)) {
|
||||
if (!(candidate instanceof IType) && !(candidate instanceof ICPPNamespace) &&
|
||||
!(candidate instanceof ICPPUsingDeclaration) &&
|
||||
LookupData.typesOnly(name)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue