The error recovery path in _Pragma attempted to lex past the non-string
literal token and then lex past a closing right paren if it exists.
However, this path wasn't careful in the face of EOF.
This fixes PR20662.
Differential D4914
Lex: Don't lex after getting EOF when handling _Pragma majnemer on Aug 14 2014, 1:49 PM. Authored by
Details
Diff Detail Event Timeline
Comment Actions I landed a change like this in r215672, but I don't have mail for it yet... Not sure what's up. |
I think you should also stop at EOD and EOM (that is, tok::eod and tok::annot_module_*).