Re: C++ PATCH to fix ICE with memset warning (PR c++/77321)

2016-08-22 Thread Marek Polacek
On Mon, Aug 22, 2016 at 06:38:10PM +0200, Marek Polacek wrote: > Here we were crashing because the code wasn't prepared for NULL_TREE types. > Thus fixed in a rather obvious way. Bernd approved the patch in the BZ, but I'm going to commit this version, with the original unreduced testcase: 2016-0

C++ PATCH to fix ICE with memset warning (PR c++/77321)

2016-08-22 Thread Marek Polacek
Here we were crashing because the code wasn't prepared for NULL_TREE types. Thus fixed in a rather obvious way. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2016-08-22 Marek Polacek PR c++/77321 * c-common.c (warn_for_memset): Check type for null. * g++.dg/cp