decl.c (check_tag_decl): Use DECL_SOURCE_LOCATION.
commit312f3fa49dd446fc42b3783102a7f956aa0856e7
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 14 Oct 2019 11:29:33 +0000 (14 11:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 14 Oct 2019 11:29:33 +0000 (14 11:29 +0000)
treecff74acc74af1aea1f893294b2c3c981a3d4f4f3
parent77ef339456ff898de80654000f519cbd80735fd3
decl.c (check_tag_decl): Use DECL_SOURCE_LOCATION.

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

* decl.c (check_tag_decl): Use DECL_SOURCE_LOCATION.

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

* g++.dg/cpp0x/constexpr-union5.C: Test location(s) too.
* g++.dg/diagnostic/bitfld2.C: Likewise.
* g++.dg/ext/anon-struct1.C: Likewise.
* g++.dg/ext/anon-struct6.C: Likewise.
* g++.dg/ext/flexary19.C: Likewise.
* g++.dg/ext/flexary9.C: Likewise.
* g++.dg/template/error17.C: Likewise.

From-SVN: r276958
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-union5.C
gcc/testsuite/g++.dg/diagnostic/bitfld2.C
gcc/testsuite/g++.dg/ext/anon-struct1.C
gcc/testsuite/g++.dg/ext/anon-struct6.C
gcc/testsuite/g++.dg/ext/flexary19.C
gcc/testsuite/g++.dg/ext/flexary9.C
gcc/testsuite/g++.dg/template/error17.C