[Bug c/70852] ice in warn_for_memset

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 29 12:40:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70852

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Apr 29 12:39:25 2016
New Revision: 235638

URL: https://gcc.gnu.org/viewcvs?rev=235638&root=gcc&view=rev
Log:
        PR c/70852
        * c-common.c (warn_for_memset): Check domain before accessing it.

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr70852.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list