Re: [PATCH] c++/71306 - bogus -Wplacement-new with an array element

2016-05-31 Thread Jason Merrill
On Mon, May 30, 2016 at 6:59 PM, Martin Sebor wrote: > On 05/30/2016 12:42 PM, Jason Merrill wrote: >> >> OK. > > Sorry, I should have asked to begin with: Is it okay to backport > this fix to the 6.x branch too? Yes. Jason

Re: [PATCH] c++/71306 - bogus -Wplacement-new with an array element

2016-05-30 Thread Martin Sebor
On 05/30/2016 12:42 PM, Jason Merrill wrote: OK. Sorry, I should have asked to begin with: Is it okay to backport this fix to the 6.x branch too? Martin

Re: [PATCH] c++/71306 - bogus -Wplacement-new with an array element

2016-05-30 Thread Jason Merrill
OK. Jason

[PATCH] c++/71306 - bogus -Wplacement-new with an array element

2016-05-27 Thread Martin Sebor
It was pointed out on gcc-help last night that the -Wplacement-new warning issues a false positive when a placement new expression is invoked with an operand that is an element of an array of pointers (to buffers of unknown size). The attached patch adjusts the warning so as to avoid this false p