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:03:30 +0200
commitbbfa870453c0d733347a59cd7e512960979b1119 (patch)
tree77810efa4b7496e1aac78bb7c2a6dd262b44bdf7
parent547472d5964f4580376a1a364eacf3e1c6b77677 (diff)
downloadkdbg-bbfa870453c0d733347a59cd7e512960979b1119.tar.gz
kdbg-bbfa870453c0d733347a59cd7e512960979b1119.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) (cherry picked from commit a6469516e6494e9e314bd44cf4fa40a4faef36b6)
-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);
}
};