diff options
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 3e394ab..c27d041 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -1722,6 +1722,10 @@ duplicate_decls (tree newdecl, tree olddecl) if (TREE_NOTHROW (newdecl)) TREE_NOTHROW (olddecl) = 1; + /* Merge deprecatedness. */ + if (TREE_DEPRECATED (newdecl)) + TREE_DEPRECATED (olddecl) = 1; + /* Merge the initialization information. */ if (DECL_INITIAL (newdecl) == NULL_TREE && DECL_INITIAL (olddecl) != NULL_TREE) |