Fix crash with array new
This commit is contained in:
parent
f541cf3848
commit
75301fa12d
|
@ -6806,6 +6806,7 @@ Expression* Parser::ParseNewOperator(void)
|
|||
Expression* pexp = new Expression(mScanner->mLocation, EX_LIST);
|
||||
pexp->mLeft = vexp;
|
||||
pexp->mRight = new Expression(mScanner->mLocation, EX_INDEX);
|
||||
pexp->mRight->mDecType = pexp->mLeft->mDecType;
|
||||
pexp->mRight->mLeft = csexp;
|
||||
pexp->mRight->mRight = new Expression(mScanner->mLocation, EX_CONSTANT);
|
||||
pexp->mRight->mRight->mDecType = TheSignedIntTypeDeclaration;
|
||||
|
|
Loading…
Reference in New Issue