1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Bug 395882 - ClassCastException in

CPPVariableReadWriteFlags.rwInCtorInitializer
This commit is contained in:
Sergey Prigogin 2012-12-05 19:27:46 -08:00
parent 3ec58f2fc3
commit 2b338f5d00

View file

@ -88,7 +88,7 @@ public final class CPPVariableReadWriteFlags extends VariableReadWriteFlags {
}
}
// 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();
if (binding instanceof IVariable) {
IType type= ((IVariable) binding).getType();