/cp
commitd974f078dd98e8a292a3e1ea70c330f03884c554
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Dec 2018 08:23:04 +0000 (6 08:23 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Dec 2018 08:23:04 +0000 (6 08:23 +0000)
treee897985b35ad8beaf0811b3b69770ec8701b81f8
parentb56815f6c69561640a3b3f3d2e056a2992bbea58
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266841 138bc75d-0d04-0410-961f-82ee72b054a4
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]