aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-05-25 15:52:10 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-05-25 15:52:10 -0400
commit91db8b1345b0d48c4b4a082843377702a0e6c55e (patch)
treea81f1edad4349f5c77b5166c665156c080051574 /gcc/cp/pt.c
parentdf23ba642d9f527ee32ed7342dd049de2461aaf0 (diff)
downloadgcc-91db8b1345b0d48c4b4a082843377702a0e6c55e.zip
gcc-91db8b1345b0d48c4b4a082843377702a0e6c55e.tar.gz
gcc-91db8b1345b0d48c4b4a082843377702a0e6c55e.tar.bz2
re PR c++/45698 (C++0x Variadic Templates: Infinite template recursion rather than an error message)
PR c++/45698 * pt.c (dependent_template_arg_p): See through ARGUMENT_PACK_SELECT. From-SVN: r174229
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index c3c759e..c9c25cd2 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -18759,6 +18759,9 @@ dependent_template_arg_p (tree arg)
if (arg == error_mark_node)
return true;
+ if (TREE_CODE (arg) == ARGUMENT_PACK_SELECT)
+ arg = ARGUMENT_PACK_SELECT_ARG (arg);
+
if (TREE_CODE (arg) == TEMPLATE_DECL
|| TREE_CODE (arg) == TEMPLATE_TEMPLATE_PARM)
return dependent_template_p (arg);