1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-11 02:05:39 +02:00

bug 98760

This commit is contained in:
Andrew Niefer 2005-06-08 18:44:41 +00:00
parent 04cd3adec5
commit 4fd7b386b2

View file

@ -850,7 +850,8 @@ public class CVisitor {
if( binding != null ) {
if( binding instanceof IFunction ){
IFunction function = (IFunction) binding;
((CFunction)function).addDeclarator( (IASTFunctionDeclarator) declarator );
if( function instanceof CFunction )
((CFunction)function).addDeclarator( (IASTFunctionDeclarator) declarator );
return function;
}
binding = new ProblemBinding( name, IProblemBinding.SEMANTIC_INVALID_OVERLOAD, name.toCharArray() );