diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-10-22 11:46:59 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-10-22 11:46:59 +0000 |
commit | be194e0e30f86b8f0f5ca578f5274814811a2f0f (patch) | |
tree | ee7f4229b162634c6d60ef9067004d451d756fe8 | |
parent | f2f3914171d7a52f662386e7da62005505bd9528 (diff) | |
download | gcc-be194e0e30f86b8f0f5ca578f5274814811a2f0f.zip gcc-be194e0e30f86b8f0f5ca578f5274814811a2f0f.tar.gz gcc-be194e0e30f86b8f0f5ca578f5274814811a2f0f.tar.bz2 |
re PR c++/58816 (ICE have tree_list in private_is_attribute_p)
2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58816
* pt.c (apply_late_template_attributes): Use get_attribute_name,
not TREE_PURPOSE.
From-SVN: r203919
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/pt.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1da821b..50ec68d0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2013-10-22 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/58816 + * pt.c (apply_late_template_attributes): Use get_attribute_name, + not TREE_PURPOSE. + 2013-10-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58466 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e04bdcc..cbb0339a 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, |