On Wed, Apr 24, 2019 at 03:11:27PM +0200, Richard Biener wrote:
> 
> While the PR is about an ICE during debug stmt expansion
> it shows a missed optimization ultimatively leading to a
> debug stmt refering to VIEW_CONVERT_EXPR<int>({}) which isn't
> handled.
> 
> The following fixes the missed optimization and thus also
> the ICE by instead producing a debug stmt refering to 0.
> 
> Bootstrap / regtest running on x86_64-unknown-linux-gnu.
> 
> OK for GCC 9?  The ICE would be a checking-only ICE.
> 
> Richard.
> 
> 2019-04-24  Richard Biener  <rguent...@suse.de>
> 
>       PR middle-end/90194
>       * match.pd: Add pattern to simplify view-conversion of an
>       empty constructor.
> 
>       * g++.dg/torture/pr90194.C: New testcase.

LGTM, thanks.

        Jakub

Reply via email to