diff options
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index a97017a..fc32d99 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -163,7 +163,7 @@ count_non_default_template_args (tree args, tree params) int n = TREE_VEC_LENGTH (args); int last; - if (params == NULL_TREE) + if (params == NULL_TREE || !flag_pretty_templates) return n; for (last = n - 1; last >= 0; --last) @@ -1206,7 +1206,8 @@ dump_function_decl (tree t, int flags) exceptions = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (t)); /* Pretty print template instantiations only. */ - if (DECL_USE_TEMPLATE (t) && DECL_TEMPLATE_INFO (t)) + if (DECL_USE_TEMPLATE (t) && DECL_TEMPLATE_INFO (t) + && flag_pretty_templates) { tree tmpl; |