https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88620
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jan 8 10:34:14 2019 New Revision: 267720 URL: https://gcc.gnu.org/viewcvs?rev=267720&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-8-branch/gcc/testsuite/gcc.c-torture/compile/pr82564.c branches/gcc-8-branch/gcc/testsuite/gcc.dg/nested-func-12.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/expr.c branches/gcc-8-branch/gcc/testsuite/ChangeLog