This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/89532 - ICE with incomplete type in decltype
- From: Jason Merrill <jason at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 1 Mar 2019 09:09:34 -0500
- Subject: Re: C++ PATCH for c++/89532 - ICE with incomplete type in decltype
- References: <20190228200411.GK8512@redhat.com>
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 <polacek@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