https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90732
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:1ccbda907d1fd3a202ff2bd951828cc97abb1a8d commit r9-8319-g1ccbda907d1fd3a202ff2bd951828cc97abb1a8d Author: Jason Merrill <ja...@redhat.com> Date: Mon Mar 2 14:42:47 2020 -0500 PR c++/90732 - ICE with VLA capture and generic lambda. We were failing to handle VLA capture in tsubst_lambda_expr; initially building a DECLTYPE_TYPE for the capture and then tsubsting it doesn't give the special VLA handling. So with this patch we call add_capture again for VLAs. gcc/cp/ChangeLog 2020-03-02 Jason Merrill <ja...@redhat.com> PR c++/90732 - ICE with VLA capture and generic lambda. * pt.c (tsubst_lambda_expr): Repeat add_capture for VLAs.