This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r278320 - in /trunk/gcc: cp/ChangeLog cp/cp-gim...
- From: paolo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 15 Nov 2019 22:56:34 -0000
- Subject: r278320 - in /trunk/gcc: cp/ChangeLog cp/cp-gim...
Author: paolo
Date: Fri Nov 15 22:56:33 2019
New Revision: 278320
URL: https://gcc.gnu.org/viewcvs?rev=278320&root=gcc&view=rev
Log:
/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.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-gimplify.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/cvt.c
trunk/gcc/cp/rtti.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/warn/Waddress-1.C
trunk/gcc/testsuite/g++.dg/warn/Walways-true-1.C
trunk/gcc/testsuite/g++.dg/warn/Walways-true-2.C
trunk/gcc/testsuite/g++.dg/warn/Walways-true-3.C