diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTVariable.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTVariable.java index 5f2157fa1ec..f549ad6d993 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTVariable.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTVariable.java @@ -53,7 +53,8 @@ public class ASTVariable extends ASTDeclaration implements IASTVariable this.isStatic = isStatic; this.name = name; qualifiedName = new ASTQualifiedNamedElement( scope, name ); - + setStartingOffset(startingOffset); + setNameOffset(nameOffset); } /* (non-Javadoc) * @see org.eclipse.cdt.core.parser.ast.IASTVariable#isAuto()