* call.c (check_dtor_name): Use constructor_name for enums too.
commit6c26e5e501f7f023dfe102071ed2bfa812eab6e6
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jun 2017 14:38:09 +0000 (29 14:38 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jun 2017 14:38:09 +0000 (29 14:38 +0000)
tree2fba0f27577752747ea9c39055b84df584d17c17
parent85de01561264fce9e9968002dcce1d602a0653eb
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249789 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/name-lookup.c