From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24910 invoked by alias); 25 Oct 2002 15:56:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24887 invoked by uid 71); 25 Oct 2002 15:56:03 -0000 Date: Fri, 25 Oct 2002 08:56:00 -0000 Message-ID: <20021025155603.24884.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/6074 is a regression from 2.95 Reply-To: Wolfgang Bangerth X-SW-Source: 2002-10/txt/msg01011.txt.bz2 List-Id: The following reply was made to PR c++/6074; it has been noted by GNATS. From: Wolfgang Bangerth To: Jan Vroonhof Cc: Nathan Sidwell , , , , Subject: Re: c++/6074 is a regression from 2.95 Date: Fri, 25 Oct 2002 10:47:57 -0500 (CDT) This patch (thanks, Jan, for the pointer) revision 1.944 date: 2002/10/10 22:29:05; author: wilson; state: Exp; lines: +0 -1 Fix C++ FE attribute alias failure. * decl.c (duplicate_decls): Don't call decl_attributes. fixed c++/6074 and some duplicates on the mainline. I append it below. Can someone consider moving it over to the 3.2 branch? I confirmed that it fixes the regression there also, but I don't know whether it might have some other adverse effects there. Regards Wolfgang Index: decl.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/cp/decl.c,v retrieving revision 1.943 retrieving revision 1.944 diff -u -r1.943 -r1.944 --- decl.c 9 Oct 2002 21:27:37 -0000 1.943 +++ decl.c 10 Oct 2002 22:29:05 -0000 1.944 @@ -3422,7 +3422,6 @@ 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) { ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth