Commit a9fe2f76 by Paolo Carlini Committed by Paolo Carlini

re PR c++/34611 (Broken diagnostic: 'tree_list' not supported by dump_expr)

2008-01-04  Paolo Carlini  <pcarlini@suse.de>
	    Jakub Jelinek  <jakub@redhat.com>

	PR c++/34611
	* error.c (dump_template_argument): Deal with TREE_LIST.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r131321
parent 9e9f7b9c
2008-01-04 Paolo Carlini <pcarlini@suse.de>
Jakub Jelinek <jakub@redhat.com>
PR c++/34611
* error.c (dump_template_argument): Deal with TREE_LIST.
2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
* parser.c (cp_parser_check_decl_spec): Don't warn about "long
......
......@@ -143,7 +143,12 @@ dump_template_argument (tree arg, int flags)
else if (TYPE_P (arg) || TREE_CODE (arg) == TEMPLATE_DECL)
dump_type (arg, flags & ~TFF_CLASS_KEY_OR_ENUM);
else
dump_expr (arg, (flags | TFF_EXPR_IN_PARENS) & ~TFF_CLASS_KEY_OR_ENUM);
{
if (TREE_CODE (arg) == TREE_LIST)
arg = TREE_VALUE (arg);
dump_expr (arg, (flags | TFF_EXPR_IN_PARENS) & ~TFF_CLASS_KEY_OR_ENUM);
}
}
/* Dump a template-argument-list ARGS (always a TREE_VEC) under control
......
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