mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +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.
|
||||
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();
|
||||
|
|
Loading…
Add table
Reference in a new issue