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: 1 Feb 2008 00:50:05 -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 #5 from pinskia at gcc dot gnu dot org 2008-02-01 00:50 -------
This is not a regression as we never merged attributes for templates, the
following patch added the merging of the attributes:
2007-08-27 Alexandre Oliva <aoliva@redhat.com>
* decl.c (GNU_INLINE_P): New.
(duplicate_decls): Handle gnu_inline. Merge attributes and
some flags in overriding definitions.
But forgot to copy DECL_DISREGARD_INLINE_LIMITS also.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34715