https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105885
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:b96b64bec37c3dddf1f0f93c27ceb4fd5685c70a commit r12-8510-gb96b64bec37c3dddf1f0f93c27ceb4fd5685c70a Author: Jason Merrill <ja...@redhat.com> Date: Wed Jun 22 23:50:23 2022 -0400 c++: -Waddress and value-dependent expr [PR105885] We already suppress various warnings for code that would be tautological if written directly, but not when it's the result of template substitution. It seems we need to do this for -Waddress as well. PR c++/105885 gcc/cp/ChangeLog: * pt.cc (tsubst_copy_and_build): Also suppress -Waddress for comparison of dependent operands. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/constexpr-if37.C: New test.