C++: Fix a typo in template declaration parser function

This is an obvious typo considering the checks at the beginning of the function.

Change-Id: I11b784153b650b02bba7bb942ca1131447a3da4a
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Povilas Kanapickas
2014-01-15 07:12:53 +02:00
parent 06592b28ad
commit 3dbb1a9275

View File

@@ -1081,7 +1081,7 @@ bool Parser::parseTemplateDeclaration(DeclarationAST *&node)
TemplateDeclarationAST *ast = new (_pool) TemplateDeclarationAST;
if (LA() == T_EXPORT || LA() == T_EXPORT)
if (LA() == T_EXPORT || LA() == T_EXTERN)
ast->export_token = consumeToken();
ast->template_token = consumeToken();