diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-07-12 17:29:11 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-07-12 17:29:11 +0000 |
commit | 3da3dcdb98a750533a9d863fce8e30c657d968af (patch) | |
tree | 11091ea35eb14182aedb23929933dacdba16067c /gcc/cp/friend.c | |
parent | 1bde114aaceb7f423aaafbc62df6e5ba51a15b27 (diff) | |
download | gcc-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/friend.c')
-rw-r--r-- | gcc/cp/friend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c index a3c2ed0..ef93bfe 100644 --- a/gcc/cp/friend.c +++ b/gcc/cp/friend.c @@ -529,7 +529,7 @@ do_friend (tree ctype, tree declarator, tree decl, /* A method friend. */ if (flags == NO_SPECIAL && declarator == cname) - DECL_CONSTRUCTOR_P (decl) = 1; + DECL_CXX_CONSTRUCTOR_P (decl) = 1; grokclassfn (ctype, decl, flags); |