mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 04:45:38 +02:00
Fix type of value-dependent fold expression evaluation
This commit is contained in:
parent
4b4daec3b4
commit
a5d51f2def
1 changed files with 1 additions and 4 deletions
|
@ -84,9 +84,6 @@ public class EvalFoldExpression extends CPPDependentEvaluation {
|
|||
|
||||
@Override
|
||||
public boolean isTypeDependent() {
|
||||
if (fType != null) {
|
||||
return fType instanceof TypeOfDependentExpression;
|
||||
}
|
||||
return containsDependentType(fPackEvals) || (fInitEval != null && fInitEval.isTypeDependent());
|
||||
}
|
||||
|
||||
|
@ -122,7 +119,7 @@ public class EvalFoldExpression extends CPPDependentEvaluation {
|
|||
@Override
|
||||
public IType getType() {
|
||||
if (fType == null) {
|
||||
if (isTypeDependent()) {
|
||||
if (isTypeDependent() || isValueDependent()) {
|
||||
fType = new TypeOfDependentExpression(this);
|
||||
} else {
|
||||
fType = computeEvaluation().getType();
|
||||
|
|
Loading…
Add table
Reference in a new issue