]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/cxx-pretty-print.c
re PR c++/33463 (Broken diagnostic: 'typeid_expr' not supported by dump_expr)
authorPaolo Carlini <pcarlini@suse.de>
Tue, 18 Sep 2007 15:38:02 +0000 (15:38 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 18 Sep 2007 15:38:02 +0000 (15:38 +0000)
commit2d65b828b292adf5e39bb71addbd671217211cd5
tree0112eedeafb6663855a7150d4e7ef0f39d72379e
parentbdfb7c6d56a79c4bb0c937ee1d4a7186a6aa3438
re PR c++/33463 (Broken diagnostic: 'typeid_expr' not supported by dump_expr)

/cp
2007-09-18  Paolo Carlini  <pcarlini@suse.de>

PR c++/33463
* cxx-pretty-print.c (pp_cxx_postfix_expression): Split
out case TYPEID_EXPR to...
(pp_cxx_typeid_expression): ... here; use pp_cxx_left_paren
and pp_cxx_right_paren.
* cxx-pretty-print.h (pp_cxx_typeid_expression): Declare.
* error.c (dump_expr): Use it.

/testsuite
2007-09-18  Paolo Carlini  <pcarlini@suse.de>

PR c++/33463
* g++.dg/rtti/typeid6.C: New.

From-SVN: r128582
gcc/cp/ChangeLog
gcc/cp/cxx-pretty-print.c
gcc/cp/cxx-pretty-print.h
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/rtti/typeid6.C [new file with mode: 0644]