On Fri, Mar 06, 2020 at 04:58:32PM +0100, Paolo Carlini wrote:
> ... the patch ;)
> 
> Paolo.
> 

> Fix "PR c++/94034 Broken diagnostic: 'result_decl' not supported by dump_expr"
> 
> A rather simple diagnostic issue where we failed to handle RESULT_DECL in
> dump_expr.
> 
> Tested x86_64-linux.
> 
>        /cp
>        PR c++/94034
>        * error.c (dump_expr): Handle RESULT_DECL like the other *_DECL.
> 
>        /testsuite
>        PR c++/94034
>        * g++.dg/cpp0x/pr94034.C: New.
> 

LGTM.  In fact, I had the same patch.

I think with this patch we print soemthing like "<result> <anonymous>"
which is still kind of ugly, but improving that is out of scope for GCC 10.

Marek

Reply via email to