This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Fix diagnostic printing of AGGR_INIT_EXPR (PR c++/30854)


Jakub Jelinek <jakub@redhat.com> writes:

| Hi!
| 
| Before http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01267.html
| AGGR_INIT_EXPR arguments were dumped in error.c through:
|       pp_cxx_left_paren (cxx_pp);
|       if (TREE_OPERAND (t, 1))
|         dump_expr_list (TREE_CHAIN (TREE_OPERAND (t, 1)), flags);
|       pp_cxx_right_paren (cxx_pp);
| i.e. the first operand (instance pointer) was always skipped.
| But now it is never skipped.
| The following patch fixes this (tested on x86_64-linux), though
| perhaps it might be better idea to just remove that argument
| from dump_aggr_init_expr_args altogether and just hardcode
| skipping of the first argument in that function.  dump_aggr_init_expr_args
| has just one caller and is static function...
| 
| Ok for trunk (or ok with removing the skipfirst argument)?

Yes, OK.

Thanks.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]