re PR c++/77321 (crash in warn_for_memset)
authorMarek Polacek <polacek@redhat.com>
Mon, 22 Aug 2016 21:53:59 +0000 (21:53 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 22 Aug 2016 21:53:59 +0000 (21:53 +0000)
commitb00e6e758ab9ba1ccc2b6c32f735013de37092a4
treeb58bd9ccb553baa7fdeab15929228481b247c105
parentbb748b89dfae944fe6e075f1b5d1c3d1501c0948
re PR c++/77321 (crash in warn_for_memset)

PR c++/77321
* c-common.c (warn_for_memset): Check type for null.

* g++.dg/cpp1y/pr77321.C: New test.

From-SVN: r239676
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr77321.C [new file with mode: 0644]