lambda-vla1.C
292 Bytes
-
PR c++/90732 - ICE with VLA capture and generic lambda. · 27626519
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. * pt.c (tsubst_lambda_expr): Repeat add_capture for VLAs.
Jason Merrill committed