From: Jim Wilson Date: Fri, 25 Oct 2002 22:38:05 +0000 (+0000) Subject: Fix C++ FE problem with attribute alias. X-Git-Tag: releases/gcc-3.2.1~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1fe36e4258ee2191b0d5fff5f434652d03f1bed;p=thirdparty%2Fgcc.git Fix C++ FE problem with attribute alias. * decl.c (duplicate_decls): Don't call decl_attributes. From-SVN: r58544 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 90e209b52935..c9c1741b8603 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2002-10-10 Jim Wilson + + * decl.c (duplicate_decls): Don't call decl_attributes. + 2002-10-25 Zack Weinberg PR middle-end/6994 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 5eb410ce53b5..1b139ffdafb9 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3500,7 +3500,6 @@ duplicate_decls (newdecl, olddecl) except for any that we copy here from the old type. */ DECL_ATTRIBUTES (newdecl) = (*targetm.merge_decl_attributes) (olddecl, newdecl); - decl_attributes (&newdecl, DECL_ATTRIBUTES (newdecl), 0); if (TREE_CODE (newdecl) == TEMPLATE_DECL) {