[C++ Patch] PR 69793 ("ICE on invalid code in "cp_lexer_peek_nth_token"")
Jason Merrill
jason@redhat.com
Wed May 18 14:39:00 GMT 2016
On 05/17/2016 04:47 PM, Paolo Carlini wrote:
> this ICE during error recovery exposes a rather more general weakness:
> we should never call cp_lexer_peek_nth_token (*, 2) when a previous
> cp_lexer_peek_token returns CPP_EOF.
Hmm, that seems fragile, I would expect it to keep returning EOF.
But your patch is OK.
Jason
More information about the Gcc-patches
mailing list