summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2015-02-22 13:47:21 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-05-31 16:02:49 +0200
commita6469516e6494e9e314bd44cf4fa40a4faef36b6 (patch)
tree00807143915169351dec3b0ee0829dd255f06ede
parent26a2a7598846501d109da764020b082ce5394d76 (diff)
downloadkdbg-a6469516e6494e9e314bd44cf4fa40a4faef36b6.tar.gz
kdbg-a6469516e6494e9e314bd44cf4fa40a4faef36b6.zip
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)
-rw-r--r--kdbg/testprogs/std.cpp2
1 files changed, 1 insertions, 1 deletions
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<T>
V(const T& v) : std::vector<T>(10, v) {}
void anotherone(const T& v)
{
- push_back(v);
+ this->push_back(v);
}
};