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
This commit is contained in:
Paolo Carlini 2013-10-22 11:46:59 +00:00 committed by Paolo Carlini
parent f2f3914171
commit be194e0e30
2 changed files with 7 additions and 1 deletions

View File

@ -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> 2013-10-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58466 PR c++/58466

View File

@ -8610,7 +8610,7 @@ apply_late_template_attributes (tree *decl_p, tree attributes, int attr_flags,
pass it through tsubst. Attributes like mode, format, pass it through tsubst. Attributes like mode, format,
cleanup and several target specific attributes expect it cleanup and several target specific attributes expect it
unmodified. */ unmodified. */
else if (attribute_takes_identifier_p (TREE_PURPOSE (t))) else if (attribute_takes_identifier_p (get_attribute_name (t)))
{ {
tree chain tree chain
= tsubst_expr (TREE_CHAIN (TREE_VALUE (t)), args, complain, = tsubst_expr (TREE_CHAIN (TREE_VALUE (t)), args, complain,