Add qualifiers for calls to member functions in dependent bases.

llvm-svn: 91087
This commit is contained in:
Anders Carlsson 2009-12-11 01:04:42 +00:00
parent 0c6a7d8f42
commit fb8d445090
1 changed files with 2 additions and 2 deletions

View File

@ -986,7 +986,7 @@ template<class DataType>
class list_storage<DataType, bool> : public std::vector<DataType> {
public:
template<class T>
void addValue(const T &V) { push_back(V); }
void addValue(const T &V) { std::vector<DataType>::push_back(V); }
};
@ -1011,7 +1011,7 @@ class list : public Option, public list_storage<DataType, Storage> {
typename ParserClass::parser_data_type();
if (Parser.parse(*this, ArgName, Arg, Val))
return true; // Parse Error!
addValue(Val);
list_storage<DataType, Storage>::addValue(Val);
setPosition(pos);
Positions.push_back(pos);
return false;