Commit 55ea5ddf by Jason Merrill Committed by Jason Merrill

pt.c (apply_late_template_attributes): Use attribute_takes_identifier_p.

	* pt.c (apply_late_template_attributes): Use
	attribute_takes_identifier_p.

From-SVN: r203727
parent 1a1f2bc5
2013-10-16 Jason Merrill <jason@redhat.com> 2013-10-16 Jason Merrill <jason@redhat.com>
* pt.c (apply_late_template_attributes): Use
attribute_takes_identifier_p.
* error.c (dump_exception_spec): Print "noexcept" rather than * error.c (dump_exception_spec): Print "noexcept" rather than
"noexcept (true)". "noexcept (true)".
......
...@@ -8610,10 +8610,7 @@ apply_late_template_attributes (tree *decl_p, tree attributes, int attr_flags, ...@@ -8610,10 +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 (TREE_VALUE (t) else if (attribute_takes_identifier_p (TREE_PURPOSE (t)))
&& TREE_CODE (TREE_VALUE (t)) == TREE_LIST
&& TREE_VALUE (TREE_VALUE (t))
&& identifier_p (TREE_VALUE (TREE_VALUE (t))))
{ {
tree chain tree chain
= tsubst_expr (TREE_CHAIN (TREE_VALUE (t)), args, complain, = tsubst_expr (TREE_CHAIN (TREE_VALUE (t)), args, complain,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment