Fixed possible crash when parsing template declarations at the end of a C++ file.

This commit is contained in:
Roberto Raggi
2010-05-31 16:00:59 +02:00
parent ecb951cab0
commit 283019a44a
2 changed files with 11 additions and 4 deletions

View File

@@ -310,8 +310,7 @@ public:
inline unsigned cursor() const
{ return _tokenIndex; }
inline void rewind(unsigned cursor)
{ _tokenIndex = cursor; }
void rewind(unsigned cursor);
struct TemplateArgumentListEntry {
unsigned index;