diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-12-18 09:57:31 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-12-18 09:57:31 +0000 |
commit | 24e943ea0e1694ac57f3cd70024f8e38adea5bdb (patch) | |
tree | 5cd2cb8ee809293ae268f9ff51f9d50db5e35f6b /include/clang/Basic/DiagnosticLexKinds.td | |
parent | 9b8aa02e2afac5b5463a6d265454a84df5f1e4b6 (diff) |
Parse: Don't parse after the eof has been consumed
ParseCXXNonStaticMemberInitializer stashes away all the tokens for the
initializer and an additional EOF token to denote where the initializer
ends. However, it is possible for ParseLexedMemberInitializer to get
its hands on the "real" EOF token; since the two tokens are
indistinguishable, we end up consuming the EOF and descend into madness.
Instead, make it possible to tell which EOF token we are looking at.
This fixes PR21872.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticLexKinds.td')
0 files changed, 0 insertions, 0 deletions