aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-04-13 22:24:51 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-04-13 18:24:51 -0400
commitada846ebb90801ac949d51c91c7b216780731e56 (patch)
tree555c34774777af41c9c70d1175e65088f983c472
parent9db83085a51e47be33b29e356d6cbd4798548346 (diff)
downloadgcc-ada846ebb90801ac949d51c91c7b216780731e56.zip
gcc-ada846ebb90801ac949d51c91c7b216780731e56.tar.gz
gcc-ada846ebb90801ac949d51c91c7b216780731e56.tar.bz2
* pt.c (tsubst_function_type): Copy attributes over.
From-SVN: r26426
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/pt.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6a75f23..a92f0ce 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index ad97a51..78af734 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -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;
}