typeck.c (cp_build_unary_op): Consistently use the accurate location in seven additio...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 27 Nov 2019 00:00:35 +0000 (00:00 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 27 Nov 2019 00:00:35 +0000 (00:00 +0000)
commit24243b5a8ad01d09fff0b26c51e074817f7f1fa7
tree3d5ac72d81c8dca9077b9899cae2a5d65d2f5baa
parentd86d8b35ddec33371cf2efaa05dfeffe035babbe
typeck.c (cp_build_unary_op): Consistently use the accurate location in seven additional diagnostic messages.

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

* typeck.c (cp_build_unary_op): Consistently use the accurate
location in seven additional diagnostic messages.
(cp_build_compound_expr): Use cp_expr_loc_or_input_loc in one place.

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

* g++.dg/cpp1z/bool-increment1.C: Test location(s) too.
* g++.dg/expr/bitfield3.C: Likewise.
* g++.dg/expr/bitfield4.C: Likewise.
* g++.dg/expr/bitfield5.C: Likewise.
* g++.dg/expr/bitfield6.C: Likewise.
* g++.dg/expr/bool1.C: Likewise.
* g++.dg/expr/bool2.C: Likewise.
* g++.dg/expr/bool3.C: Likewise.
* g++.dg/expr/bool4.C: Likewise.
* g++.dg/expr/lval3.C: Likewise.
* g++.dg/other/error18.C: Likewise.
* g++.dg/warn/Wpointer-arith-1.C: Likewise.
* g++.old-deja/g++.bugs/900212_01.C: Likewise.
* g++.old-deja/g++.bugs/900428_02.C: Likewise.
* g++.old-deja/g++.jason/rfg14.C: Likewise.
* g++.old-deja/g++.other/overload11.C: Likewise.

From-SVN: r278743
19 files changed:
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/bool-increment1.C
gcc/testsuite/g++.dg/expr/bitfield3.C
gcc/testsuite/g++.dg/expr/bitfield4.C
gcc/testsuite/g++.dg/expr/bitfield5.C
gcc/testsuite/g++.dg/expr/bitfield6.C
gcc/testsuite/g++.dg/expr/bool1.C
gcc/testsuite/g++.dg/expr/bool2.C
gcc/testsuite/g++.dg/expr/bool3.C
gcc/testsuite/g++.dg/expr/bool4.C
gcc/testsuite/g++.dg/expr/lval3.C
gcc/testsuite/g++.dg/other/error18.C
gcc/testsuite/g++.dg/warn/Wpointer-arith-1.C
gcc/testsuite/g++.old-deja/g++.bugs/900212_01.C
gcc/testsuite/g++.old-deja/g++.bugs/900428_02.C
gcc/testsuite/g++.old-deja/g++.jason/rfg14.C
gcc/testsuite/g++.old-deja/g++.other/overload11.C