[Bug c++/93618] [10 Regression] : unknown array size in delete when using C++20 standard
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 10 08:54:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93618
--- Comment #5 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:59dbb04df76da41f26192c2c219584fc3d6017cc
commit r10-6543-g59dbb04df76da41f26192c2c219584fc3d6017cc
Author: Jason Merrill <jason@redhat.com>
Date: Mon Feb 10 00:47:34 2020 +0100
c++: Fix flexible array with synthesized constructor.
We were already rejecting initialization of a flexible array member in a
constructor; we similarly shouldn't try to clean it up.
PR c++/93618
* tree.c (array_of_unknown_bound_p): New.
* init.c (perform_member_init): Do nothing for flexible arrays.
More information about the Gcc-bugs
mailing list