On Wed, 10 Jun 2026, Jakub Jelinek wrote:

> Hi!
> 
> The following invalid testcases ICE in both the C and C++ FEs.
> If arg is error_mark_node, TREE_TYPE works on it (and gives error_mark_node)
> but TYPE_MAIN_VARIANT on it is already invalid.
> 
> The following patch fixes it in both spot by checking for error_operand_p
> before that.
> 
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
> 
> 2026-06-09  Jakub Jelinek  <[email protected]>
> 
>       PR c/125694
>       * c-parser.cc (c_parser_postfix_expression): If arg is
>       error_operand_p, set error and break.

The C front-end changes are OK.

-- 
Joseph S. Myers
[email protected]

Reply via email to