[Bug c/67088] Incorrect location of error on invalid type used in bit-field declaration
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 3 13:56:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67088
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Aug 3 13:55:28 2015
New Revision: 226506
URL: https://gcc.gnu.org/viewcvs?rev=226506&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr67088.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list