Fix new operator broken with placement new fix

This commit is contained in:
drmortalwombat 2025-04-30 22:38:43 +02:00
parent c4185832ba
commit 6caed58be4

View File

@ -8427,7 +8427,7 @@ Expression* Parser::ParseNewOperator(void)
{ {
mErrors->Error(mScanner->mLocation, ERRO_NO_MATCHING_FUNCTION_CALL, "No matching constructor", dec->mIdent); mErrors->Error(mScanner->mLocation, ERRO_NO_MATCHING_FUNCTION_CALL, "No matching constructor", dec->mIdent);
} }
else if (nexp->mDecType->IsSimpleType()) else if (nexp->mDecType->mBase->IsSimpleType())
{ {
Expression* cexp = new Expression(mScanner->mLocation, EX_CONSTANT); Expression* cexp = new Expression(mScanner->mLocation, EX_CONSTANT);