aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/search.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-06-27 17:27:49 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-06-27 17:27:49 +0000
commitb2cf76f3a58d065122d2ae94bf55510551ff27f4 (patch)
tree37e8225773157de7dee0c8d54f30a477abf6d3f7 /gcc/cp/search.c
parent68fe5f441e9ea89a48a240ff5fcc05cf0146af7d (diff)
downloadgcc-b2cf76f3a58d065122d2ae94bf55510551ff27f4.zip
gcc-b2cf76f3a58d065122d2ae94bf55510551ff27f4.tar.gz
gcc-b2cf76f3a58d065122d2ae94bf55510551ff27f4.tar.bz2
cp-tree.h (CLASSTYPE_DESTRUCTORS): Rename to ...
* cp-tree.h (CLASSTYPE_DESTRUCTORS): Rename to ... (CLASSTYPE_DESTRUCTOR): ... this. * class.c (accessible_nvdtor_p) maybe_warn_about_overly_private_class, add_implicitly_declared_members, clone_constructors_and_destructors, type_has_virtual_destructor): Adjust for CLASSTYPE_DESTRUCTOR. (deduce_noexcept_on_destructors): Absorb into ... (check_bases_and_members): ... here. * except.c (dtor_nothrow): Adjust for CLASSTYPE_DESTRUCTOR. * init.c (build_delete): Likewise. * parser.c (cp_parser_lookup_name): Likewise. * pt.c (check_explicit_specialization): Likewise. * rtti.c (emit_support_tinfos): Likewise. * search.c (lookup_fnfields_idx_nolazy): Likewise. (--This line, and those below, will be ignored-- M cp/cp-tree.h M cp/search.c M cp/init.c M cp/class.c M cp/rtti.c M cp/except.c M cp/ChangeLog M cp/pt.c M cp/parser.c From-SVN: r249701
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r--gcc/cp/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 2630150..d7895a0 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -1592,7 +1592,7 @@ lookup_fnfields_idx_nolazy (tree type, tree name)
/* and destructors are second. */
if (name == dtor_identifier)
{
- fn = CLASSTYPE_DESTRUCTORS (type);
+ fn = CLASSTYPE_DESTRUCTOR (type);
return fn ? CLASSTYPE_DESTRUCTOR_SLOT : -1;
}
if (IDENTIFIER_CONV_OP_P (name))