mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 560636 - Fix exception in findImplicitlyCalledConstructor
Change-Id: I5183737d0125713a5c4515752ba13f83df716ac2
This commit is contained in:
parent
187d88443d
commit
f69a613d72
1 changed files with 7 additions and 1 deletions
|
@ -3779,7 +3779,13 @@ public class CPPSemantics {
|
||||||
if (CPPTemplates.isDependentType(sourceType)) {
|
if (CPPTemplates.isDependentType(sourceType)) {
|
||||||
IType[] tmp = { sourceType };
|
IType[] tmp = { sourceType };
|
||||||
setTargetedFunctionsToUnknown(tmp);
|
setTargetedFunctionsToUnknown(tmp);
|
||||||
return CPPDeferredFunction.createForCandidates(type.getConstructors());
|
ICPPConstructor[] ctors = type.getConstructors();
|
||||||
|
if (ctors != null && ctors.length > 0) {
|
||||||
|
return CPPDeferredFunction.createForCandidates(type.getConstructors());
|
||||||
|
} else {
|
||||||
|
return new ProblemBinding(typeId, ISemanticProblem.BINDING_NOT_FOUND,
|
||||||
|
type.getNameCharArray());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Cost c;
|
Cost c;
|
||||||
if (calculateInheritanceDepth(sourceType, type) >= 0) {
|
if (calculateInheritanceDepth(sourceType, type) >= 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue