Skip to content

Commit 0a509b1

Browse files
Update tokenlist.cpp
1 parent b84bc8d commit 0a509b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/tokenlist.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ static void compileTerm(Token *&tok, AST_state& state)
830830
} else if ((state.cpp && iscpp11init(tok)) || Token::simpleMatch(tok->previous(), "] {")) {
831831
Token *const end = tok->link();
832832
if (state.op.empty() || Token::Match(tok->previous(), "[{,]") || Token::Match(tok->tokAt(-2), "%name% (")) {
833-
if (Token::Match(tok, "{ . %name% =|{")) {
833+
if (Token::Match(tok->tokAt(-1), "!!, { . %name% =|{")) {
834834
const int inArrayAssignment = state.inArrayAssignment;
835835
state.inArrayAssignment = 1;
836836
compileBinOp(tok, state, compileExpression);

0 commit comments

Comments
 (0)