[PATCH 02/10] Fix g++.dg/cpp0x/nsdmi-template14.C

Jason Merrill jason@redhat.com
Thu Dec 3 20:33:00 GMT 2015


On 12/03/2015 09:55 AM, David Malcolm wrote:
> This patch adds bulletproofing to detect purged tokens, and avoid using
> them.
>
> Alternatively, is it OK to access purged tokens for this kind of thing?
> If so, would it make more sense to instead leave their locations untouched
> when purging them?

I think cp_lexer_previous_token should skip past purged tokens.

Jason



More information about the Gcc-patches mailing list