diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CFunction.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CFunction.java index 1436b49a4e9..2b5354347fe 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CFunction.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CFunction.java @@ -259,7 +259,8 @@ public class CFunction implements IFunction, ICInternalBinding { IASTStandardFunctionDeclarator orig = (IASTStandardFunctionDeclarator) getPhysicalNode(); IASTParameterDeclaration [] ops = orig.getParameters(); IASTParameterDeclaration [] nps = ((IASTStandardFunctionDeclarator)fdtor).getParameters(); - + if(ops.length < nps.length ) + return; for( int i = 0; i < nps.length; i++ ){ IASTName origname = ops[i].getDeclarator().getName(); if( origname.getBinding() != null ){