middle-end/102273 - avoid ICE with auto-init and nested functions
authorRichard Biener <rguenther@suse.de>
Fri, 10 Sep 2021 10:28:09 +0000 (12:28 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 10 Sep 2021 11:51:42 +0000 (13:51 +0200)
commit79f488de3036a4a4be08df2a782e6eb02419db19
treef7b10cf09b891d046a4777ac25c6f21156ef5ec5
parent5c5c2d86e520c3bf37368309b2fe932c88bdd14f
middle-end/102273 - avoid ICE with auto-init and nested functions

This refactors expansion to consider non-decl LHS.  I suspect
the is_val argument is not needed.

2021-09-10  Richard Biener  <rguenther@suse.de>

PR middle-end/102273
* internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.

* gcc.dg/pr102273.c: New testcase.
gcc/internal-fn.c
gcc/testsuite/gcc.dg/pr102273.c [new file with mode: 0644]