c++: fix PR104025 change
authorJason Merrill <jason@redhat.com>
Wed, 19 Jan 2022 03:11:56 +0000 (22:11 -0500)
committerJason Merrill <jason@redhat.com>
Wed, 19 Jan 2022 04:06:56 +0000 (23:06 -0500)
commitbd0ef3534816a1b8ffad544d9ed720690a97d7cc
treec2698fd2af8ce7a264b60c49adc89bd8d5b8a81c
parentddce00dba244d889d688490517fb106169a72f01
c++: fix PR104025 change

Somehow I pushed my earlier patch without it actually fixing the test; we
need input_location to be for the last consumed token, not the next one.

gcc/cp/ChangeLog:

* parser.cc (saved_token_sentinel::rollback): Use
cp_lexer_previous_token.
gcc/cp/parser.cc