https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88620
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 11:26:01 2019 New Revision: 275085 URL: https://gcc.gnu.org/viewcvs?rev=275085&root=gcc&view=rev Log: Backported from mainline 2019-01-05 Jakub Jelinek <ja...@redhat.com> PR middle-end/82564 PR target/88620 * expr.c (expand_assignment): For calls returning VLA structures if to_rtx is not a MEM, force it into a stack temporary. * gcc.dg/nested-func-12.c: New test. * gcc.c-torture/compile/pr82564.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/compile/pr82564.c branches/gcc-7-branch/gcc/testsuite/gcc.dg/nested-func-12.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/expr.c branches/gcc-7-branch/gcc/testsuite/ChangeLog