Fix new operator broken with placement new fix
This commit is contained in:
parent
c4185832ba
commit
6caed58be4
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue