call.c (check_dtor_name): Use constructor_name for enums too.
authorNathan Sidwell <nathan@acm.org>
Thu, 29 Jun 2017 14:38:09 +0000 (14:38 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 29 Jun 2017 14:38:09 +0000 (14:38 +0000)
commit56b2a94b4377c86118f43297f7def1ff7d0b0e65
tree2fba0f27577752747ea9c39055b84df584d17c17
parent79a2e690b4654e88437aa40627f24068dc5216f5
call.c (check_dtor_name): Use constructor_name for enums too.

* call.c (check_dtor_name): Use constructor_name for enums too.
(build_new_method_call_1): Use constructor_name for cdtors and
show ~ for dtor.
* class.c (build_self_reference): Use TYPE_NAME to get name of
self reference.
* name-lookup (constructor_name): Use DECL_NAME directly.
(constructor_name_p): Reimplement.
(push_class_level_binding_1): Use TYPE_NAME directly.

From-SVN: r249789
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/name-lookup.c