mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 11:25:35 +02:00
fix bug 89255
This commit is contained in:
parent
2ea954d056
commit
55b8cf6afa
2 changed files with 10 additions and 3 deletions
|
@ -1476,8 +1476,11 @@ public class CompleteParser2Tests extends TestCase {
|
||||||
|
|
||||||
ICPPConstructor ctor = A.getConstructors()[0];
|
ICPPConstructor ctor = A.getConstructors()[0];
|
||||||
|
|
||||||
|
IProblemBinding fp = (IProblemBinding) col.getName(12).resolveBinding();
|
||||||
|
assertEquals( fp.getID(), IProblemBinding.SEMANTIC_NAME_NOT_FOUND );
|
||||||
|
|
||||||
assertInstances( col, N, 3 );
|
assertInstances( col, N, 3 );
|
||||||
assertInstances( col, f, 2 );
|
assertInstances( col, f, 1 );
|
||||||
assertInstances( col, A, 3 );
|
assertInstances( col, A, 3 );
|
||||||
assertInstances( col, ctor, 2 );
|
assertInstances( col, ctor, 2 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -724,8 +724,12 @@ public class CPPSemantics {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//if still not found, loop and check our containing scope
|
//if still not found, loop and check our containing scope
|
||||||
if( data.qualified() && !data.usingDirectives.isEmpty() )
|
if( data.qualified() ) {
|
||||||
data.usingDirectivesOnly = true;
|
if( !data.usingDirectives.isEmpty() )
|
||||||
|
data.usingDirectivesOnly = true;
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if( blockItem != null )
|
if( blockItem != null )
|
||||||
node = blockItem;
|
node = blockItem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue