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

2017-03-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79984

--- Comment #3 from Marek Polacek  ---
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

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

2017-03-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79984

--- Comment #2 from Marek Polacek  ---
The fix is same as for PR79962.

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

2017-03-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79984

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2017-03-09
   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org
   Target Milestone|--- |6.4
 Ever confirmed|0   |1

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

2017-03-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79984

--- Comment #1 from Marek Polacek  ---
Started with r233472.