]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix assert in c-exp.y
authorTom Tromey <tromey@adacore.com>
Fri, 20 Mar 2020 14:10:59 +0000 (08:10 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 20 Mar 2020 14:31:17 +0000 (08:31 -0600)
commitf7d4f0b1b9519fa10eb04cb195bdf7b5044d73c7
tree467d4c10ad2cfd4c0f98497e0bdf8b3f40f4321e
parentf67210ff1c4200ea668189d086c6b39145cd876f
Fix assert in c-exp.y

The "restrict" patch added some asserts to c-exp.y, but one spot was
copy-pasted and referred to the wrong table.  This was pointed out by
-fsanitize=address.  This patch fixes the bug.

gdb/ChangeLog
2020-03-20  Tom Tromey  <tromey@adacore.com>

* c-exp.y (lex_one_token): Fix assert.
gdb/ChangeLog
gdb/c-exp.y