------- Comment #4 from pinskia at gcc dot gnu dot org  2008-01-31 23:39 -------
Patch which I will be testing for 4.4.0:
Index: cp/decl.c
===================================================================
--- cp/decl.c   (revision 131943)
+++ cp/decl.c   (working copy)
@@ -1675,6 +1675,11 @@
                = DECL_INTERFACE_KNOWN (new_result);
              DECL_DECLARED_INLINE_P (old_result)
                = DECL_DECLARED_INLINE_P (new_result);
+             DECL_DISREGARD_INLINE_LIMITS (old_result)
+               = DECL_DISREGARD_INLINE_LIMITS (new_result)
+                 = (DECL_DISREGARD_INLINE_LIMITS (new_result)
+                    || DECL_DISREGARD_INLINE_LIMITS (old_result));
+
            }
          else
            {
@@ -1682,6 +1687,10 @@
                |= DECL_INLINE (new_result);
              DECL_DECLARED_INLINE_P (old_result)
                |= DECL_DECLARED_INLINE_P (new_result);
+             DECL_DISREGARD_INLINE_LIMITS (old_result)
+               = DECL_DISREGARD_INLINE_LIMITS (new_result)
+                 = (DECL_DISREGARD_INLINE_LIMITS (new_result)
+                    || DECL_DISREGARD_INLINE_LIMITS (old_result));
              check_redeclaration_exception_specification (newdecl, olddecl);
            }
        }


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |33702
              nThis|                            |
   Target Milestone|---                         |4.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34715

Reply via email to