re PR c++/79962 (ICE nonnull_check_p on a function template with a type-dependent...
authorMarek Polacek <polacek@redhat.com>
Thu, 9 Mar 2017 22:45:39 +0000 (22:45 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 9 Mar 2017 22:45:39 +0000 (22:45 +0000)
commit822a132cfb5da9f38bd970c1b2cf20e49bb5a482
treed85725d3c0738957d6cb3b03a5297efac0328538
parent6579b1563b4c373ab3567646fffd5acc029edfb1
re PR c++/79962 (ICE nonnull_check_p on a function template with a type-dependent attribute nonnull)

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.

From-SVN: r246016
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/nonnull-3.c [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wnonnull3.C [new file with mode: 0644]