2004-01-02 Matthias Klose <doko@debian.org>
Backport from mainline:
2003-12-28 Mark Mitchell <mark@codesourcery.com>
PR c++/13081
* decl.c (duplicate_decls): Preserve inline-ness when redeclaring
a function template.
PR c++/13081
* g++.dg/opt/inline6.C: New test.
From-SVN: r75320
+2004-01-02 Matthias Klose <doko@debian.org>
+
+ Backport from mainline:
+ 2003-12-28 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/13081
+ * decl.c (duplicate_decls): Preserve inline-ness when redeclaring
+ a function template.
+
2003-12-20 Andrew Pinski <pinskia@physics.uc.edu>
Backport from mainline:
= DECL_SOURCE_LOCATION (newdecl);
}
+ if (DECL_FUNCTION_TEMPLATE_P (newdecl))
+ {
+ DECL_INLINE (DECL_TEMPLATE_RESULT (olddecl))
+ |= DECL_INLINE (DECL_TEMPLATE_RESULT (newdecl));
+ DECL_DECLARED_INLINE_P (DECL_TEMPLATE_RESULT (olddecl))
+ |= DECL_DECLARED_INLINE_P (DECL_TEMPLATE_RESULT (newdecl));
+ }
+
return 1;
}
+2004-01-02 Matthias Klose <doko@debian.org>
+
+ Backport from mainline:
+ 2003-12-28 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/13081
+ * g++.dg/opt/inline6.C: New test.
+
2004-01-01 Jakub Jelinek <jakub@redhat.com>
PR optimization/13521