Comment 5 for bug 1308261

Revision history for this message
In , Cvs-commit (cvs-commit) wrote :

The master branch has been updated by Jason Merrill <email address hidden>:

https://gcc.gnu.org/g:ad09440a09597c34e0b93498aad9d6ef0b8ca9ae

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.