Streamline for_each_template_parm.
authorJason Merrill <jason@redhat.com>
Sat, 31 Oct 2015 16:19:55 +0000 (12:19 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 31 Oct 2015 16:19:55 +0000 (12:19 -0400)
commita459b07fa440fcb449e9b65cf0cc649905b6ba9e
treeeb24d290cd61c4f2a9b7ab6f08a383530f3ef77e
parent09833a1db1a6a24968cf4575a2a26a8823e3f3ca
Streamline for_each_template_parm.

* pt.c (for_each_template_parm_r): Use WALK_SUBTREE.
Return a meaningful value rather than error_mark_node.
(for_each_template_parm): Return a tree.
(uses_template_parms_level): Return bool.
* cp-tree.h: Adjust.

From-SVN: r229628
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c