[C++ PATCH] simplify clone predicate
authorNathan Sidwell <nathan@acm.org>
Sun, 15 Sep 2019 12:24:14 +0000 (12:24 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Sun, 15 Sep 2019 12:24:14 +0000 (12:24 +0000)
commitda903a1610ba94d9309ab3438bd8a6391a7e77fb
tree5d6145bb8f4865515e5f0bbadaddbc11587fc9ed
parentf5b72b67cf7c667a1c21ffeee1a7e6716650c55d
[C++ PATCH] simplify clone predicate

https://gcc.gnu.org/ml/gcc-patches/2019-09/msg00904.html
* cp-tree.h (DECL_CLONED_FUNCTION_P): Reimplement using
IDENTIFIER_CDTOR_P, correct documentation.
(DECL_CLONED_FUNCTION): Directly access field.
(decl_cloned_function_p): Delete.
* class.c (decl_cloned_function_p): Delete.
* pt.c (instantiate_template_1): Check DECL_CHAIN is a decl.

From-SVN: r275727
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/pt.c