diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java index 83a29fe464d..1cc6a59a9c7 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTTypeUtil.java @@ -418,7 +418,8 @@ public class ASTTypeUtil { IType[] types = new IType[DEAULT_ITYPE_SIZE]; // push all of the types onto the stack - while (type != null) { + int i=0; + while(type != null && ++i<100) { final boolean isTypedef= type instanceof ITypedef; if (!resolveTypedefs || !isTypedef) { types = (IType[]) ArrayUtil.append(IType.class, types, type);