commit r10-6121-gad09440a09597c34e0b93498aad9d6ef0b8ca9ae
Author: Jason Merrill <email address hidden>
Date: Tue Jan 21 14:21:49 2020 -0500
PR c++/60855 - ICE with sizeof VLA capture.
For normal captures we usually look through them within unevaluated context,
but that doesn't work here; trying to take the sizeof of the array in the
enclosing scope tries and fails to evaluate a SAVE_EXPR from the enclosing
scope.
* lambda.c (is_lambda_ignored_entity): Don't look past VLA capture.
The master branch has been updated by Jason Merrill <email address hidden>:
https:/ /gcc.gnu. org/g:ad09440a0 9597c34e0b93498 aad9d6ef0b8ca9a e
commit r10-6121- gad09440a09597c 34e0b93498aad9d 6ef0b8ca9ae
Author: Jason Merrill <email address hidden>
Date: Tue Jan 21 14:21:49 2020 -0500
PR c++/60855 - ICE with sizeof VLA capture.
For normal captures we usually look through them within unevaluated context,
but that doesn't work here; trying to take the sizeof of the array in the
enclosing scope tries and fails to evaluate a SAVE_EXPR from the enclosing
scope.
* lambda.c (is_lambda_ ignored_ entity) : Don't look past VLA capture.