From fb8d445090d7f364ff22e603616ef6584d460f5f Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 11 Dec 2009 01:04:42 +0000 Subject: [PATCH] Add qualifiers for calls to member functions in dependent bases. llvm-svn: 91087 --- llvm/include/llvm/Support/CommandLine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index 2e65fdd79a14..7f8b10c375f9 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/include/llvm/Support/CommandLine.h @@ -986,7 +986,7 @@ template class list_storage : public std::vector { public: template - void addValue(const T &V) { push_back(V); } + void addValue(const T &V) { std::vector::push_back(V); } }; @@ -1011,7 +1011,7 @@ class list : public Option, public list_storage { typename ParserClass::parser_data_type(); if (Parser.parse(*this, ArgName, Arg, Val)) return true; // Parse Error! - addValue(Val); + list_storage::addValue(Val); setPosition(pos); Positions.push_back(pos); return false;