re PR c/67088 (Incorrect location of error on invalid type used in bit-field declaration)
authorMarek Polacek <polacek@redhat.com>
Mon, 3 Aug 2015 13:55:28 +0000 (13:55 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 3 Aug 2015 13:55:28 +0000 (13:55 +0000)
commit420a9d9bd81efc3aaba61ea8e93a719cc78b2960
treede264df0797b218dd8c4ba0467628218acb2c8f2
parent5030111533de53f866bff85cd045085e717c7bf6
re PR c/67088 (Incorrect location of error on invalid type used in bit-field declaration)

PR c/67088
* c-decl.c (check_bitfield_type_and_width): Add location parameter.
Use it.
(grokdeclarator): Pass LOC down to check_bitfield_type_and_width.

* gcc.dg/pr67088.c: New test.

From-SVN: r226506
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr67088.c [new file with mode: 0644]