https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105885

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:6e4d5300c1f62c3f0cd1bf859b0ee6bb4e31e434

commit r13-1218-g6e4d5300c1f62c3f0cd1bf859b0ee6bb4e31e434
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.

Reply via email to