From: paolo Date: Tue, 22 Oct 2013 11:46:59 +0000 (+0000) Subject: 2013-10-22 Paolo Carlini X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2dafd8b5913ad10e0a66b890e67b3281c9bc8ff1;p=thirdparty%2Fgcc.git 2013-10-22 Paolo Carlini PR c++/58816 * pt.c (apply_late_template_attributes): Use get_attribute_name, not TREE_PURPOSE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203919 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1da821b72759..50ec68d09252 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2013-10-22 Paolo Carlini + + PR c++/58816 + * pt.c (apply_late_template_attributes): Use get_attribute_name, + not TREE_PURPOSE. + 2013-10-18 Paolo Carlini PR c++/58466 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e04bdcc81cb6..cbb0339a3194 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -8610,7 +8610,7 @@ apply_late_template_attributes (tree *decl_p, tree attributes, int attr_flags, pass it through tsubst. Attributes like mode, format, cleanup and several target specific attributes expect it unmodified. */ - else if (attribute_takes_identifier_p (TREE_PURPOSE (t))) + else if (attribute_takes_identifier_p (get_attribute_name (t))) { tree chain = tsubst_expr (TREE_CHAIN (TREE_VALUE (t)), args, complain,