Backport from mainline
2004-01-05 Mark Mitchell <mark@codesourcery.com>
PR c++/13057
* class.c (build_clone): Copy type attributes from the original
function to the clone.
From-SVN: r76258
+2004-01-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ Backport from mainline
+ 2004-01-05 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/13057
+ * class.c (build_clone): Copy type attributes from the original
+ function to the clone.
+
2004-01-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
Backport from mainline
if (exceptions)
TREE_TYPE (clone) = build_exception_variant (TREE_TYPE (clone),
exceptions);
+ TREE_TYPE (clone)
+ = build_type_attribute_variant (TREE_TYPE (clone),
+ TYPE_ATTRIBUTES (TREE_TYPE (fn)));
}
/* Copy the function parameters. But, DECL_ARGUMENTS on a TEMPLATE_DECL