This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79962] [5/6 Regression] ICE nonnull_check_p on a function template with a type-dependent attribute nonnull
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Mar 2017 15:53:54 +0000
- Subject: [Bug c++/79962] [5/6 Regression] ICE nonnull_check_p on a function template with a type-dependent attribute nonnull
- Auto-submitted: auto-generated
- References: <bug-79962-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79962
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Mar 14 15:53:23 2017
New Revision: 246131
URL: https://gcc.gnu.org/viewcvs?rev=246131&root=gcc&view=rev
Log:
PR c++/79962
PR c++/79984
* c-common.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:
branches/gcc-6-branch/gcc/testsuite/c-c++-common/nonnull-3.c
branches/gcc-6-branch/gcc/testsuite/g++.dg/warn/Wnonnull3.C
Modified:
branches/gcc-6-branch/gcc/c-family/ChangeLog
branches/gcc-6-branch/gcc/c-family/c-common.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog