From a6469516e6494e9e314bd44cf4fa40a4faef36b6 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Sun, 22 Feb 2015 13:47:21 +0100 Subject: [PATCH] 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) --- kdbg/testprogs/std.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdbg/testprogs/std.cpp b/kdbg/testprogs/std.cpp index af37a3a..f1865a9 100644 --- a/kdbg/testprogs/std.cpp +++ b/kdbg/testprogs/std.cpp @@ -13,7 +13,7 @@ struct V : std::vector V(const T& v) : std::vector(10, v) {} void anotherone(const T& v) { - push_back(v); + this->push_back(v); } };