re PR c++/34965 (Broken diagnostic: 'truth_and_expr' not supported by dump_expr)
authorJakub Jelinek <jakub@redhat.com>
Sat, 26 Jan 2008 17:04:54 +0000 (18:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 26 Jan 2008 17:04:54 +0000 (18:04 +0100)
commit6f536f74ed2ea25a598bda90599202712e5fe632
tree6523683d3981eeb44700f6e079f5b17ecdbf08fe
parent680f02e4b47faab19c6f90630a4be1b15122e6fb
re PR c++/34965 (Broken diagnostic: 'truth_and_expr' not supported by dump_expr)

PR c++/34965
* c-pretty-print.c (pp_c_exclusive_or_expression): Handle
TRUTH_XOR_EXPR.
(pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
(pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
(pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
and TRUTH_XOR_EXPR.

* error.c (dump_expr): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
and TRUTH_XOR_EXPR.

* gcc.dg/pr34965.c: New test.
* g++.dg/other/error24.C: New test.

From-SVN: r131868
gcc/ChangeLog
gcc/c-pretty-print.c
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/error24.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr34965.c [new file with mode: 0644]