[Bug c++/71121] [6/7 Regression] Spurious warning: "the address of [...] will never be NULL [-Waddress]"
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 21 06:06:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71121
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jul 21 06:05:33 2016
New Revision: 238559
URL: https://gcc.gnu.org/viewcvs?rev=238559&root=gcc&view=rev
Log:
PR c++/71121 - -Waddress, constexpr, and PMFs.
* cp-gimplify.c (cp_fully_fold): First call maybe_constant_value.
Added:
trunk/gcc/testsuite/g++.dg/warn/Waddress-4.C
Removed:
trunk/gcc/testsuite/g++.dg/warn/overflow-warn-7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-gimplify.c
More information about the Gcc-bugs
mailing list