This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/67192] Backward-goto in loop can get wrong line number
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Aug 2015 20:18:22 +0000
- Subject: [Bug debug/67192] Backward-goto in loop can get wrong line number
- Auto-submitted: auto-generated
- References: <bug-67192-4 at http dot gcc dot gnu dot org/bugzilla/>
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.