decl2.c (grokbitfield): Use DECL_SOURCE_LOCATION in error message...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 6 Dec 2018 08:23:04 +0000 (08:23 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 6 Dec 2018 08:23:04 +0000 (08:23 +0000)
commit34b1a7d63d96b0c39734c0b6dfee76715506efcf
treee897985b35ad8beaf0811b3b69770ec8701b81f8
parentbd38d0da47c238e6660a3d1d8461083abfe23aa2
decl2.c (grokbitfield): Use DECL_SOURCE_LOCATION in error message...

/cp
2018-12-06  Paolo Carlini  <paolo.carlini@oracle.com>

* decl2.c (grokbitfield): Use DECL_SOURCE_LOCATION in error message;
print the type too; fix thinko in INDIRECT_TYPE_P use.

/testsuite
2018-12-06  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/parse/bitfield6b.C: New.
* g++.dg/parse/bitfield3.C: Test location and type.

From-SVN: r266841
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/bitfield3.C
gcc/testsuite/g++.dg/parse/bitfield6b.C [new file with mode: 0644]