aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-07-12 17:29:11 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-07-12 17:29:11 +0000
commit3da3dcdb98a750533a9d863fce8e30c657d968af (patch)
tree11091ea35eb14182aedb23929933dacdba16067c /gcc/cp/decl2.c
parent1bde114aaceb7f423aaafbc62df6e5ba51a15b27 (diff)
downloadgcc-3da3dcdb98a750533a9d863fce8e30c657d968af.zip
gcc-3da3dcdb98a750533a9d863fce8e30c657d968af.tar.gz
gcc-3da3dcdb98a750533a9d863fce8e30c657d968af.tar.bz2
cp-tree.h (DECL_CONSTRUCTOR_P, [...]): Look at identifier flags.
* cp-tree.h (DECL_CONSTRUCTOR_P, DECL_MAYBE_IN_CHARGE_CONSTRUCTOR, DECL_DESTRUCTOR_P, DECL_MAYBE_IN_CHARGE_DESTRCTOR): Look at identifier flags. * decl.c (grokfndecl): Set DECL_CXX_CONSTRUCTOR and DECL_CXX_DESTRUCTOR explicitly. * decl2.c (grokclassfn): Likewise. * friend.c (do_friend): Likewise. * method.c (make_thunk, make_alias_for, implicitly_declare_fn): Likewise. From-SVN: r250158
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 62a50ac..4fa4ad9 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -342,7 +342,7 @@ grokclassfn (tree ctype, tree function, enum overload_flags flags)
DECL_CONTEXT (function) = ctype;
if (flags == DTOR_FLAG)
- DECL_DESTRUCTOR_P (function) = 1;
+ DECL_CXX_DESTRUCTOR_P (function) = 1;
if (flags == DTOR_FLAG || DECL_CONSTRUCTOR_P (function))
maybe_retrofit_in_chrg (function);