Skip to content

Commit d3407b4

Browse files
Update tokenize.cpp
1 parent e9c027a commit d3407b4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/tokenize.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9550,6 +9550,8 @@ void Tokenizer::simplifyCPPAttribute()
95509550
Token* head = skipCPPOrAlignAttribute(tok)->next();
95519551
while (isCPPAttribute(head) || isAlignAttribute(head))
95529552
head = skipCPPOrAlignAttribute(head)->next();
9553+
if (!head)
9554+
syntaxError(tok);
95539555
head->isAttributeUnused(true);
95549556
} else if (Token::Match(tok->previous(), ") [ [ expects|ensures|assert default|audit|axiom| : %name% <|<=|>|>= %num% ] ]")) {
95559557
const Token *vartok = tok->tokAt(4);

0 commit comments

Comments
 (0)