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

From-SVN: r26426
This commit is contained in:
Jason Merrill 1999-04-13 22:24:51 +00:00 committed by Jason Merrill
parent 9db83085a5
commit ada846ebb9
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
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
and com_interface.
* cp-tree.h: Add prototype.

View File

@ -5919,6 +5919,7 @@ tsubst_function_type (t, args, complain, in_decl)
(arg_types));
}
fntype = build_qualified_type (fntype, TYPE_QUALS (t));
fntype = build_type_attribute_variant (fntype, TYPE_ATTRIBUTES (t));
return fntype;
}