https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104786
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:ba3ff5e35144e2afff4ccef4ccbbbbaba9870afb commit r12-7560-gba3ff5e35144e2afff4ccef4ccbbbbaba9870afb 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.cc (expand_asm_stmt): Do not generate a copy for VLAs without an upper size bound. * gcc.dg/pr104786.c: New testcase.