This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]