mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 378930: ArrayStoreException collecting fields.
This commit is contained in:
parent
b1fc6f69be
commit
b142e8e20a
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ public class CStructure extends PlatformObject implements ICompositeType, ICInte
|
||||||
for (IASTDeclarator declarator : declarators) {
|
for (IASTDeclarator declarator : declarators) {
|
||||||
IASTName name = ASTQueries.findInnermostDeclarator(declarator).getName();
|
IASTName name = ASTQueries.findInnermostDeclarator(declarator).getName();
|
||||||
IBinding binding = name.resolveBinding();
|
IBinding binding = name.resolveBinding();
|
||||||
if (binding != null)
|
if (binding instanceof IField)
|
||||||
fields = ArrayUtil.append(fields, (IField) binding);
|
fields = ArrayUtil.append(fields, (IField) binding);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue