Fix unnamed bitfield struct members
commit154c3e7450d9a65464b42410ce7864072ed0670f
authorMichael Matz <matz@suse.de>
Mon, 4 Jul 2022 13:24:46 +0000 (4 15:24 +0200)
committerMichael Matz <matz@suse.de>
Tue, 16 Aug 2022 13:59:41 +0000 (16 15:59 +0200)
tree628202bdb9bbef05016b79b4fa8dc759264fddfe
parent47dc6e6d7b5be49cc86d12f9e4d32420029d82a0
Fix unnamed bitfield struct members

they look similar to labels 'foobar : 32' (when foobar is a typedef),
but cannot be handled as such in parse_btype, the context is important
(labels can only happen when called from within 'block', aka decl0 in
VT_LOCAL context).  This got broken back in 2019 (1b57560).
tccgen.c
tests/tcctest.c