diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-05-20 13:20:39 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-05-20 13:20:39 +0000 |
commit | 3c1247f03db5d6e9478f3fd6ea7a3950ccd68118 (patch) | |
tree | e7c1e737d6e8636b42e15975f55ed1cef3329642 /gcc/cp/call.c | |
parent | 8f1352c4190e174c76f3a7b264411b3374f87450 (diff) | |
download | gcc-3c1247f03db5d6e9478f3fd6ea7a3950ccd68118.zip gcc-3c1247f03db5d6e9478f3fd6ea7a3950ccd68118.tar.gz gcc-3c1247f03db5d6e9478f3fd6ea7a3950ccd68118.tar.bz2 |
re PR c++/23608 (constant propagation (CCP) would improve -Wsign-compare)
/cp
2013-05-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/23608
* call.c (build_new_op_1): Propagate loc to cp_build_binary_op.
/testsuite
2013-05-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/23608
* g++.dg/warn/Wsign-compare-6.C: New.
* g++.dg/warn/Wdouble-promotion.C: Adjust.
From-SVN: r199102
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index b09a87f..ce66042 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -5418,7 +5418,7 @@ build_new_op_1 (location_t loc, enum tree_code code, int flags, tree arg1, case BIT_AND_EXPR: case BIT_IOR_EXPR: case BIT_XOR_EXPR: - return cp_build_binary_op (input_location, code, arg1, arg2, complain); + return cp_build_binary_op (loc, code, arg1, arg2, complain); case UNARY_PLUS_EXPR: case NEGATE_EXPR: |