mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 421823 - When a base class lookup runs into a deferred instance,
disambiguate between a method and a field Change-Id: Ib29f85822d11504a9f4c857083f275443ce6a832 Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
This commit is contained in:
parent
7ece374afd
commit
a121f85c83
1 changed files with 4 additions and 1 deletions
|
@ -217,6 +217,7 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPScope;
|
|||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPTemplateNonTypeArgument;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPTemplateParameterMap;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPUnknownConstructor;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPUnknownField;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPUnknownMemberClass;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPUnknownMethod;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPUsingDeclaration;
|
||||
|
@ -497,8 +498,10 @@ public class CPPSemantics {
|
|||
if (binding == null && data.skippedScope != null) {
|
||||
if (namePropertyInParent == IASTNamedTypeSpecifier.NAME) {
|
||||
binding= new CPPUnknownMemberClass(data.skippedScope, name.getSimpleID());
|
||||
} else {
|
||||
} else if (data.isFunctionCall()) {
|
||||
binding= new CPPUnknownMethod(data.skippedScope, name.getSimpleID());
|
||||
} else {
|
||||
binding= new CPPUnknownField(data.skippedScope, name.getSimpleID());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue