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

Bug 511606 - ClassCastException: CPPTypedefSpecialization cannot be cast

to IArrayType

Change-Id: Iac14f1a84323e2a0fee01cb23fb1ce33ee27757c
This commit is contained in:
Sergey Prigogin 2017-02-02 20:17:56 -08:00 committed by Gerrit Code Review @ Eclipse.org
parent 5a4e821cfb
commit 66c965df2e

View file

@ -109,7 +109,7 @@ public final class ExecDeclarator implements ICPPExecution {
} else if (isArrayType(nestedType) && !isCStringType(nestedType)) {
if (computedInitializerEval instanceof EvalInitList) {
IValue value = CompositeValue.create((EvalInitList) computedInitializerEval,
(IArrayType) type, context.getPoint());
(IArrayType) nestedType, context.getPoint());
return new EvalFixed(type, computedInitializerEval.getValueCategory(context.getPoint()), value);
} else {
// TODO(sprigogin): Should something else be done here?