1
0
Fork 0
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:
Markus Schorn 2012-09-17 08:45:08 +02:00
parent 4536b4b84c
commit 3b03ad0e7a

View file

@ -170,7 +170,7 @@ public class CStructure extends PlatformObject implements ICompositeType, ICInte
for (IASTDeclarator declarator : declarators) {
IASTName name = ASTQueries.findInnermostDeclarator(declarator).getName();
IBinding binding = name.resolveBinding();
if (binding != null)
if (binding instanceof IField)
fields = ArrayUtil.append(fields, (IField) binding);
}
}