This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34715] always_inline with templates and not declared as always_inline but definition has it
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2008 23:39:26 -0000
- Subject: [Bug c++/34715] always_inline with templates and not declared as always_inline but definition has it
- References: <bug-34715-15505@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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