https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123566

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andi Kleen from comment #13)
> Created attachment 63425 [details]
> add missing errors
> 
> The error happens because cp_finish_decl sees an error tree without an error
> happening first.
> 
> this patch fixes the test case. error messages likely need improvement.

Erroring when there is already error_mark_node is not something that seems to
be correct. Also this seems very much the wrong way forward.
The question is would https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103901#c3
fix the issue at hand but this is stage 4 so maybe that would introduce much
more issues.

Reply via email to