Fix call of a member function dependent on a template parameter.

We must make the access of 'push_back' dependent, too. Otherwise, name
lookup does not find the name. Earlier compilers were more permissive and
did find the name.
(cherry picked from upstream commit 5f55847d441aba7742417e78c3b4fbe8344acc5e)

(cherry picked from commit a6469516e6)
r14.0.x
Johannes Sixt 9 years ago committed by Slávek Banko
parent 547472d596
commit bbfa870453
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -13,7 +13,7 @@ struct V : std::vector<T>
V(const T& v) : std::vector<T>(10, v) {}
void anotherone(const T& v)
{
push_back(v);
this->push_back(v);
}
};

Loading…
Cancel
Save