re PR c/70852 (ice in warn_for_memset)
authorMarek Polacek <polacek@redhat.com>
Fri, 29 Apr 2016 12:39:25 +0000 (12:39 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 29 Apr 2016 12:39:25 +0000 (12:39 +0000)
commit2fff3db89fa064071835924a7a9e1751a0b383fa
tree136005217bb86ce1eacfff3f8d4a764a43ee0c3c
parent500ecf4abd0f29d0cb4555de105a3f4152b6c423
re PR c/70852 (ice in warn_for_memset)

PR c/70852
* c-common.c (warn_for_memset): Check domain before accessing it.

* gcc.dg/pr70852.c: New test.

From-SVN: r235638
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr70852.c [new file with mode: 0644]