Commit ada846eb by Jason Merrill Committed by Jason Merrill

* pt.c (tsubst_function_type): Copy attributes over.

From-SVN: r26426
parent 9db83085
1999-04-13 Jason Merrill <jason@yorick.cygnus.com> 1999-04-13 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (tsubst_function_type): Copy attributes over.
* tree.c (cp_valid_lang_attribute): New fn. Handle init_priority * tree.c (cp_valid_lang_attribute): New fn. Handle init_priority
and com_interface. and com_interface.
* cp-tree.h: Add prototype. * cp-tree.h: Add prototype.
......
...@@ -5919,6 +5919,7 @@ tsubst_function_type (t, args, complain, in_decl) ...@@ -5919,6 +5919,7 @@ tsubst_function_type (t, args, complain, in_decl)
(arg_types)); (arg_types));
} }
fntype = build_qualified_type (fntype, TYPE_QUALS (t)); fntype = build_qualified_type (fntype, TYPE_QUALS (t));
fntype = build_type_attribute_variant (fntype, TYPE_ATTRIBUTES (t));
return fntype; return fntype;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment