On 04/29/2016 02:01 PM, Marek Polacek wrote:
Here, we segv because we're checking TYPE_MAXVAL of domain that is actually null for "extern int a[];". The fix is trivial.Bootstrapped/regtested on x86_64-linux, ok for trunk? 2016-04-29 Marek Polacek <pola...@redhat.com> PR c/70852 * c-common.c (warn_for_memset): Check domain before accessing it. * gcc.dg/pr70852.c: New test.
Ok, thanks. Bernd