aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-07-04 17:43:57 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-07-04 17:43:57 -0400
commit21d69a5bb0e06bd8876242c99001ad3b9c7946b1 (patch)
tree2e1a150f337c1b9c2f5eaeef5c7f057ee2c5235e /gcc/cp/pt.c
parent0d3128d6a4925e05f560f665adcbb90eb1427a81 (diff)
downloadgcc-21d69a5bb0e06bd8876242c99001ad3b9c7946b1.zip
gcc-21d69a5bb0e06bd8876242c99001ad3b9c7946b1.tar.gz
gcc-21d69a5bb0e06bd8876242c99001ad3b9c7946b1.tar.bz2
error.c (dump_template_bindings): Don't print typenames for a partial instantiation.
* error.c (dump_template_bindings): Don't print typenames for a partial instantiation. (dump_function_decl): If we aren't printing function arguments, print template arguments as <args> rather than [with ...]. (dump_expr): Don't print return type or template header. [BASELINK]: Use BASELINK_FUNCTIONS rather than get_first_fn. * pt.c (dependent_template_arg_p): Handle null arg. From-SVN: r175834
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 7236e7e..e7be08b 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -18848,7 +18848,7 @@ dependent_template_arg_p (tree arg)
is dependent. This is consistent with what
any_dependent_template_arguments_p [that calls this function]
does. */
- if (arg == error_mark_node)
+ if (!arg || arg == error_mark_node)
return true;
if (TREE_CODE (arg) == ARGUMENT_PACK_SELECT)