On 07/28/2016 03:19 PM, Marek Polacek wrote:
Since r157233, build_compound_literal will return error_mark_node for
erroneous initializers of compound literals.  This caused an ICE in
c_parser_postfix_expression_after_paren_type because the code dealing
with evaluating variably modified types wasn't prepared for expr.value
being error_mark_node.  Fixed thus.

Bootstrapped/regtested on x86_64-linux, ok for trunk?

2016-07-28  Marek Polacek  <pola...@redhat.com>

        PR c/71583
        * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
        check expr.value.

        * gcc.dg/noncompile/pr71583.c: New test.

Ok, I think.


Bernd

Reply via email to