class.c (add_method): Move slot search and insertion to ...
authorNathan Sidwell <nathan@acm.org>
Tue, 5 Sep 2017 20:13:10 +0000 (20:13 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 5 Sep 2017 20:13:10 +0000 (20:13 +0000)
commitfcaf306523baa9883c680a3a894bb5ff43092073
tree8b7422026ce0fcbd3ad25011ec8c5e4cbe41eeee
parent146c2e3ad070b6ba29bd48865ebb5c909f27d8e6
class.c (add_method): Move slot search and insertion to ...

* class.c (add_method): Move slot search and insertion to ...
* name-lookup.c (get_method_slot): ... this new function.
(lookup_fnfields_slot_nolazy): Cope with NULL slot.
* name-lookup.h (get_method_slot): Declare.
* decl.c (cxx_init_decl_processinng): Give conv_op_marker a more
realistic type.
(grok_special_member_properties): Set
TYPE_HAS_CONVERSION. Expicitly look at DECL_NAME for specialness.
Improve TYPE_HAS_CONSTEXPR_CTOR setting.

From-SVN: r251737
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h