1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 515348 - Propagate point of instantiation in EvalTypeId.computeForFunctionCall()

Change-Id: I0b23a1e8ad86cbae225005429ca66ae03e6b3a34
This commit is contained in:
Nathan Ridge 2017-04-18 01:55:03 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent fffe6bbf80
commit 375c3c6e50

View file

@ -395,7 +395,7 @@ public class EvalTypeId extends CPPDependentEvaluation {
@Override
public ICPPEvaluation computeForFunctionCall(ActivationRecord record,
ConstexprEvaluationContext context) {
ICPPFunction constructor = getConstructor(null);
ICPPFunction constructor = getConstructor(context.getPoint());
if (constructor != null && constructor instanceof ICPPConstructor) {
return new EvalConstructor(fInputType, (ICPPConstructor) constructor, fArguments,
getTemplateDefinition()).computeForFunctionCall(record, context);