Re: [PATCH] handle invalid array index in warn_placement_new_too_small (PR 83058)

2017-11-27 Thread Jason Merrill
On 11/27/2017 02:24 PM, Martin Sebor wrote: Bug 83058 - [6/7/8 Regression] ICE on C++ code with negative array index: in warn_placement_new_too_small, at cp/init.c:2666, reports an ICE for an invalid placement new expression with a negative array index. The ICE was caused by calling tree_to_uhwi

[PATCH] handle invalid array index in warn_placement_new_too_small (PR 83058)

2017-11-27 Thread Martin Sebor
Bug 83058 - [6/7/8 Regression] ICE on C++ code with negative array index: in warn_placement_new_too_small, at cp/init.c:2666, reports an ICE for an invalid placement new expression with a negative array index. The ICE was caused by calling tree_to_uhwi (nelts) without first checking to make sure