From ada846ebb90801ac949d51c91c7b216780731e56 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 13 Apr 1999 22:24:51 +0000 Subject: [PATCH] * pt.c (tsubst_function_type): Copy attributes over. From-SVN: r26426 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/pt.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6a75f237b42..a92f0ce5803 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 1999-04-13 Jason Merrill + * 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 ad97a5152bf..78af7344951 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; } -- 2.30.2