https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104786
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:e513d5641077d41ff85e6f877f8997e173886cd6 commit r10-10545-ge513d5641077d41ff85e6f877f8997e173886cd6 Author: Richard Biener <rguent...@suse.de> Date: Wed Mar 9 10:55:49 2022 +0100 middle-end/104786 - ICE with asm and VLA The following fixes an ICE observed with a MEM_REF allows_mem asm operand referencing a VLA. The following makes sure to not attempt to go the temporary creation way when we cannot. 2022-03-09 Richard Biener <rguent...@suse.de> PR middle-end/104786 * cfgexpand.c (expand_asm_stmt): Do not generate a copy for VLAs without an upper size bound. * gcc.dg/pr104786.c: New testcase. (cherry picked from commit ba3ff5e35144e2afff4ccef4ccbbbbaba9870afb)