Fix static const member qualification with dot

This commit is contained in:
drmortalwombat 2025-05-19 08:16:58 +02:00
parent 8dd211b662
commit d710a71ba0

View File

@ -7279,6 +7279,13 @@ Expression* Parser::ParseQualify(Expression* exp)
exp = nexp; exp = nexp;
} }
} }
else if (mdec->mType == DT_CONST_INTEGER || mdec->mType == DT_CONST_FLOAT || mdec->mType == DT_CONST_POINTER || mdec->mType == DT_CONST_ADDRESS)
{
nexp = new Expression(mScanner->mLocation, EX_CONSTANT);
nexp->mDecValue = mdec;
nexp->mDecType = mdec->mBase;
exp = nexp;
}
} }
else if (destructor) else if (destructor)
{ {