On 2/28/19 3:04 PM, Marek Polacek wrote:
If get_target_expr_sfinae gets an expression whose type is incomplete, it's
upset.  digest_init returns error_mark_node if it gets an expression with
incomplete type, so we need to respect that, and not call
get_target_expr_sfinae on ORIG_CL in that case.

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

2019-02-28  Marek Polacek  <pola...@redhat.com>

        PR c++/89532 - ICE with incomplete type in decltype.
        * semantics.c (finish_compound_literal): Return error_mark_node
        if digest_init_flags returns error_mark_node.

OK.

Jason

Reply via email to