[Bug c++/79984] [6/7 Regression] ICE with -Wnonnull-compare

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 9 22:46:00 GMT 2017


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Mar  9 22:45:39 2017
New Revision: 246016

URL: https://gcc.gnu.org/viewcvs?rev=246016&root=gcc&view=rev
Log:
        PR c++/79962
        PR c++/79984
        * c-attribs.c (handle_nonnull_attribute): Save the result of default
        conversion to the attribute list.

        * c-c++-common/nonnull-3.c: New test.
        * g++.dg/warn/Wnonnull3.C: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/nonnull-3.c
    trunk/gcc/testsuite/g++.dg/warn/Wnonnull3.C
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-attribs.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list