This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6074 is a regression from 2.95
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: Jan Vroonhof <jvlists at ntlworld dot com>
- Cc: Nathan Sidwell <nathan at codesourcery dot com>, <gcc at gcc dot gnu dot org>, <gcc-gnats at gcc dot gnu dot org>, <gcc-patches at gcc dot gnu dot org>, <wilson at redhat dot com>
- Date: Fri, 25 Oct 2002 10:47:57 -0500 (CDT)
- Subject: Re: c++/6074 is a regression from 2.95
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