From c4185832ba706fec3e48216a56781f6273582814 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Wed, 30 Apr 2025 17:06:28 +0200 Subject: [PATCH] Fix method invocation on rvalue reference --- oscar64/Parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oscar64/Parser.cpp b/oscar64/Parser.cpp index 99c5ead..2b6ad09 100644 --- a/oscar64/Parser.cpp +++ b/oscar64/Parser.cpp @@ -6996,7 +6996,7 @@ Expression* Parser::ParseQualify(Expression* exp) exp = exp->ConstantFold(mErrors, mDataSection); - if (dtype->mType == DT_TYPE_REFERENCE || dtype->mType == DT_TYPE_RVALUEREF) + if (dtype->IsReference()) dtype = dtype->mBase; if (dtype->mType == DT_TYPE_STRUCT || dtype->mType == DT_TYPE_UNION) @@ -7103,7 +7103,7 @@ Expression* Parser::ParseQualify(Expression* exp) texp->mLeft = exp; texp->mDecType = new Declaration(nexp->mLocation, DT_TYPE_POINTER); texp->mDecType->mFlags |= DTF_CONST | DTF_DEFINED; - if (exp->mDecType->mType == DT_TYPE_REFERENCE) + if (exp->mDecType->IsReference()) texp->mDecType->mBase = exp->mDecType->mBase; else texp->mDecType->mBase = exp->mDecType;