[PATCH] fix PR c++/77804 - ICE on placement VLA new

Martin Sebor msebor@gmail.com
Mon Oct 3 20:53:00 GMT 2016

The attached patch removes an assumption from the implementation
of the -Wplacement-new warning that the size of the array type
enclosed in parentheses and accepted by G++ as an extension is
constant.  The assumption causes an ICE in 6.2.0 and 7.0.

Is the patch good to commit to both 7.0 and the 6 branch?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-77804.diff
Type: text/x-patch
Size: 2042 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161003/883ee535/attachment.bin>

More information about the Gcc-patches mailing list