Revert behavior to r251316.
authorMartin Liska <mliska@suse.cz>
Wed, 7 Feb 2018 13:16:04 +0000 (14:16 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 7 Feb 2018 13:16:04 +0000 (13:16 +0000)
commit43e4df5a0bed4833a4812746e5554ed057b6dfd4
treed5254354848ad9ccaa8aea13df7aa8490d6aa304
parent228868f5324dacfbd2b7892d223b5eba044c51e7
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
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/mv26.C [new file with mode: 0644]