typeck.c (cp_truthvalue_conversion): Add tsubst_flags_t parameter and use it in calls...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 15 Nov 2019 22:56:33 +0000 (22:56 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 15 Nov 2019 22:56:33 +0000 (22:56 +0000)
commit2ab340fe17e7b5021c980badab9f5318d1517646
tree5ddf11c67b73a26f5d9f6044364c25d305ebc795
parentf982d12a51cd91c7a16af22f8054bfb648fe54ca
typeck.c (cp_truthvalue_conversion): Add tsubst_flags_t parameter and use it in calls...

/cp
2019-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

* typeck.c (cp_truthvalue_conversion): Add tsubst_flags_t parameter
and use it in calls; also pass the location_t of the expression to
cp_build_binary_op and c_common_truthvalue_conversion.
* rtti.c (build_dynamic_cast_1): Adjust call.
* cvt.c (ocp_convert): Likewise.
* cp-gimplify.c (cp_fold): Likewise.
* cp-tree.h (cp_truthvalue_conversion): Update declaration.

/testsuite
2019-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/warn/Walways-true-1.C: Check locations too.
* g++.dg/warn/Walways-true-2.C: Likewise.
* g++.dg/warn/Walways-true-3.C: Likewise.
* g++.dg/warn/Waddress-1.C: Check additional location.

From-SVN: r278320
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/rtti.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Waddress-1.C
gcc/testsuite/g++.dg/warn/Walways-true-1.C
gcc/testsuite/g++.dg/warn/Walways-true-2.C
gcc/testsuite/g++.dg/warn/Walways-true-3.C