[Bug debug/67192] Backward-goto in loop can get wrong line number
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 18 20:18:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67192
--- Comment #10 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #8)
> Does GCC work at all if input_location is saved and restored in
> c_parser_peek_token? I guess not, it seems too much still relies in
> input_location being magically right.
Perhaps you can add c_parser_peek_token_keep_input_location and use that where
you are peeking the next token.
More information about the Gcc-bugs
mailing list