aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-02-07 14:16:04 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-02-07 13:16:04 +0000
commit43e4df5a0bed4833a4812746e5554ed057b6dfd4 (patch)
treed5254354848ad9ccaa8aea13df7aa8490d6aa304 /gcc/cp/class.c
parent228868f5324dacfbd2b7892d223b5eba044c51e7 (diff)
downloadgcc-43e4df5a0bed4833a4812746e5554ed057b6dfd4.zip
gcc-43e4df5a0bed4833a4812746e5554ed057b6dfd4.tar.gz
gcc-43e4df5a0bed4833a4812746e5554ed057b6dfd4.tar.bz2
Revert behavior to r251316.
2018-02-07 Martin Liska <mliska@suse.cz> PR c++/84059. * class.c (add_method): Append argument value. * cp-tree.h (maybe_version_functions): Add new argument. * decl.c (decls_match): Call it if a declaration does not have DECL_FUNCTION_VERSIONED. (maybe_version_functions): record argument is added. 2018-02-07 Martin Liska <mliska@suse.cz> PR c++/84059. * g++.dg/ext/mv26.C: New test. From-SVN: r257451
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 6012b8de..4417020 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -1083,7 +1083,7 @@ add_method (tree type, tree method, bool via_using)
/* If these are versions of the same function, process and
move on. */
if (TREE_CODE (fn) == FUNCTION_DECL
- && maybe_version_functions (method, fn))
+ && maybe_version_functions (method, fn, true))
continue;
if (DECL_INHERITED_CTOR (method))