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

2016-10-04 Thread Jason Merrill
OK. On Mon, Oct 3, 2016 at 4:53 PM, Martin Sebor wrote: > 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

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

2016-10-03 Thread Martin Sebor
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