1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-07 00:55:24 +02:00

Bug 395882 - ClassCastException in

CPPVariableReadWriteFlags.rwInCtorInitializer
This commit is contained in:
Sergey Prigogin 2012-12-05 19:27:46 -08:00
parent 8a97926f2b
commit a7797cd437

View file

@ -88,7 +88,7 @@ public final class CPPVariableReadWriteFlags extends VariableReadWriteFlags {
} }
} }
// Allow for initialization of primitive types. // Allow for initialization of primitive types.
if (parent.getArguments().length == 1) { if (grand instanceof IASTDeclarator && parent.getArguments().length == 1) {
IBinding binding= ((IASTDeclarator) grand).getName().getBinding(); IBinding binding= ((IASTDeclarator) grand).getName().getBinding();
if (binding instanceof IVariable) { if (binding instanceof IVariable) {
IType type= ((IVariable) binding).getType(); IType type= ((IVariable) binding).getType();