Skip to content

Commit 3c2b27e

Browse files
committed
fix #14010 & #14018
1 parent 3bff1fc commit 3c2b27e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenlist.cpp

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

0 commit comments

Comments
 (0)