This is the mail archive of the gcc@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 is a hand crafted reply based on the mailing list archive]

 > If you want to, see if you can track down the patch which fixed it. I'm
 > fairly certain this bug report has popped up more than once,

Yes, I even used a patch included in one of them to "fix" it on 3.2. I
found it through one of the eCos lists. I can't find back to
though. Maybe it was from a message on gcc-patches?

I still have the GCC tree for that though. I have attached the diff at
the end.

6930 is a definite duplicate

 > indicating
 > real code contains such stuff.

This code is used in the eCos C library (which is built using C++)
.There is a work around on the eCos side as well, but AFAIK that is
not in the eCos CVS.

Jan

cvs server: Diffing .
Index: decl.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.866.2.36.2.2
diff -u -u -r1.866.2.36.2.2 decl.c
--- decl.c	6 Oct 2002 23:02:09 -0000	1.866.2.36.2.2
+++ decl.c	25 Oct 2002 10:26:05 -0000
@@ -3500,7 +3500,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)
     {


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