[Bug c++/86216] g++ ICE on valid code: verify_ssa failed
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Feb 1 00:08:00 GMT 2020
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 <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:00a49cd840f60774b0e9e0109fb10559bc9a9194
commit r10-6389-g00a49cd840f60774b0e9e0109fb10559bc9a9194
Author: Jason Merrill <jason@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.
More information about the Gcc-bugs
mailing list