diff options
author | Mark Wielaard <mark@klomp.org> | 2021-07-23 01:19:01 +0200 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-07-23 14:54:36 +0100 |
commit | 17fcb1a3bad0c281e9d8c789455025dd9232081b (patch) | |
tree | 1a12af0f69b1b8f12166afa7a0f83d2136fe8a23 /gcc/ordered-hash-map-tests.cc | |
parent | 44472c580cedd836081c82e621482e479a69729c (diff) | |
download | gcc-17fcb1a3bad0c281e9d8c789455025dd9232081b.zip gcc-17fcb1a3bad0c281e9d8c789455025dd9232081b.tar.gz gcc-17fcb1a3bad0c281e9d8c789455025dd9232081b.tar.bz2 |
Better union support in the parser
union is a weak keyword which means it isn't reserved and can be used
as a generic identifier. When we see an identifier where a union could
be declared we check whether the identifier is "union", but only when
the next token is also an identifier. In parse_union we shouldn't skip
the first identifier token, because it is already skipped when we call
expect_token.
Diffstat (limited to 'gcc/ordered-hash-map-tests.cc')
0 files changed, 0 insertions, 0 deletions