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:
parent
8a97926f2b
commit
a7797cd437
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue