decl.c (grok_ctor_properties): Use DECL_SOURCE_LOCATION.
commit8cb6a77590957942e124b34e0bb0827d1404f341
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 9 Oct 2019 17:17:19 +0000 (9 17:17 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 9 Oct 2019 17:17:19 +0000 (9 17:17 +0000)
tree8365e428846695ba8bdf5434f8cda6bbfbd5a1aa
parentcc386cf23346d7cf78493390c4fe1e3ca4f171e6
decl.c (grok_ctor_properties): Use DECL_SOURCE_LOCATION.

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

* decl.c (grok_ctor_properties): Use DECL_SOURCE_LOCATION.
* typeck.c (cp_build_binary_op): Use the op_location_t argument
in many error messages.

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

* c-c++-common/Waddress-1.c: Test locations too.
* c-c++-common/Wpointer-compare-1.c: Likewise.
* c-c++-common/Wshift-count-negative-1.c: Likewise.
* c-c++-common/Wshift-count-overflow-1.c: Likewise.
* c-c++-common/Wshift-negative-value-1.c: Likewise.
* c-c++-common/Wshift-negative-value-2.c: Likewise.
* c-c++-common/Wshift-negative-value-5.c: Likewise.
* c-c++-common/pr48418.c: Likewise.
* c-c++-common/pr65830.c: Likewise.
* c-c++-common/pr69764.c: Likewise.
* g++.dg/cpp0x/constexpr-array-ptr10.C: Likewise.
* g++.dg/cpp0x/nullptr37.C: Likewise.
* g++.dg/template/crash126.C: Likewise.
* g++.dg/template/crash129.C: Likewise.
* g++.dg/warn/Wextra-3.C: Likewise.
* g++.dg/warn/Wfloat-equal-1.C: Likewise.
* g++.dg/warn/Wstring-literal-comparison-1.C: Likewise.
* g++.dg/warn/Wstring-literal-comparison-2.C: Likewise.
* g++.dg/warn/pointer-integer-comparison.C: Likewise.
* g++.old-deja/g++.jason/crash8.C: Likewise.

From-SVN: r276763
24 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Waddress-1.c
gcc/testsuite/c-c++-common/Wpointer-compare-1.c
gcc/testsuite/c-c++-common/Wshift-count-negative-1.c
gcc/testsuite/c-c++-common/Wshift-count-overflow-1.c
gcc/testsuite/c-c++-common/Wshift-negative-value-1.c
gcc/testsuite/c-c++-common/Wshift-negative-value-2.c
gcc/testsuite/c-c++-common/Wshift-negative-value-5.c
gcc/testsuite/c-c++-common/pr48418.c
gcc/testsuite/c-c++-common/pr65830.c
gcc/testsuite/c-c++-common/pr69764.c
gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr10.C
gcc/testsuite/g++.dg/cpp0x/nullptr37.C
gcc/testsuite/g++.dg/template/crash126.C
gcc/testsuite/g++.dg/template/crash129.C
gcc/testsuite/g++.dg/warn/Wextra-3.C
gcc/testsuite/g++.dg/warn/Wfloat-equal-1.C
gcc/testsuite/g++.dg/warn/Wstring-literal-comparison-1.C
gcc/testsuite/g++.dg/warn/Wstring-literal-comparison-2.C
gcc/testsuite/g++.dg/warn/pointer-integer-comparison.C
gcc/testsuite/g++.old-deja/g++.jason/crash8.C