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++, diagnostic] PR 33494


Paolo Carlini <pcarlini@suse.de> writes:

| Hi Gaby,
| > Hi Paolo, could we just call pp_cxx_expression instead of the split?
| >   
| Sure, if we can "export" the entire pp_cxx_expression we can also start
| tidying a bit error.c, I started on that in the below, picking some safe
| recent bits. Tested x86_64-linux. Is it ok?

Hi Paolo,

sorry for the delay.


| 
| By the way, in that context, I'm puzzled by the way pp_cxx_expression
| deals with NON_DEPENDENT_EXPR. Is it calling itself or what?
| 
| Thanks,
| Paolo.
| 
| ///////////////
| /cp
| 2007-10-29  Paolo Carlini  <pcarlini@suse.de>
| 
| 	PR c++/33494
| 	* cxx-pretty-print.c (pp_cxx_expression): Change to extern linkage.

I was meaning to actually call pp_expression(), which indirectly calls
pp_cxx_expression. 

  

| 	* cxx-pretty-print.h: Adjust declarations.
| 	* error.c (dump_expr, case EXPR_PACK_EXPANSION, TYPEID_EXPR,
| 	MEMBER_REF, DOTSTAR_EXPR, DELETE_EXPR, VEC_DELETE_EXPR,
| 	MODOP_EXPR): Forward to pp_cxx_expression.

This part is OK, if you s/pp_cxx_expression/pp_expression/ and it
passes regression tests.

-- Gaby


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