[Bug c++/60855] ICE provoked by a lambda using the sizeof a captured VLA

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 21 21:43:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60855

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

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

commit r10-6121-gad09440a09597c34e0b93498aad9d6ef0b8ca9ae
Author: Jason Merrill <jason@redhat.com>
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.


More information about the Gcc-bugs mailing list