typeck.c (cp_build_modify_expr): Prefer error + inform to error + error in one place.
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 30 Oct 2019 11:49:21 +0000 (11:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 30 Oct 2019 11:49:21 +0000 (11:49 +0000)
commit0f92815326da137187fdf8841f48f6013a6022ed
treed08265e58d236c3f977a4634fafd1cc8d20de227
parentc425e66b27eb0aa79f1100a6da87f65731ecd8b5
typeck.c (cp_build_modify_expr): Prefer error + inform to error + error in one place.

/cp
2019-10-30  Paolo Carlini  <paolo.carlini@oracle.com>

* typeck.c (cp_build_modify_expr): Prefer error + inform to
error + error in one place.
(get_delta_difference_1): Likewise.
(get_delta_difference): Likewise, in two places.

/testsuite
2019-10-30  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/conversion/ptrmem2.C: Adjust for error + inform.
* g++.dg/gomp/tpl-atomic-2.C: Likewise.

From-SVN: r277610
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/ptrmem2.C
gcc/testsuite/g++.dg/gomp/tpl-atomic-2.C