Skip to content

Commit 915001c

Browse files
committed
Undo
1 parent 6d21a59 commit 915001c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lib/templatesimplifier.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,8 @@ void TemplateSimplifier::getTemplateInstantiations()
833833
} else if (Token::Match(tok->previous(), "(|{|}|;|=|>|<<|:|.|*|&|return|<|,|!|[ %name% ::|<|(") ||
834834
Token::Match(tok->previous(), "%type% %name% ::|<") ||
835835
Token::Match(tok->tokAt(-2), "[,:] private|protected|public %name% ::|<")) {
836+
if (!tok->scopeInfo())
837+
syntaxError(tok);
836838
std::string scopeName = tok->scopeInfo()->name;
837839
std::string qualification;
838840
Token * qualificationTok = tok;

0 commit comments

Comments
 (0)