https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86216
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:00a49cd840f60774b0e9e0109fb10559bc9a9194 commit r10-6389-g00a49cd840f60774b0e9e0109fb10559bc9a9194 Author: Jason Merrill <ja...@redhat.com> Date: Fri Jan 31 17:10:30 2020 -0500 c++: Fix sizeof VLA lambda capture. sizeof a VLA type is not a constant in C or the GNU C++ extension, so we need to capture the VLA even in unevaluated context. For PR60855 we stopped looking through a previous capture, but we also need to capture the first time the variable is mentioned. PR c++/86216 * semantics.c (process_outer_var_ref): Capture VLAs even in unevaluated context.