aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/expr.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2025-03-12 18:16:46 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2025-03-15 17:54:15 +0100
commitdf1f6b98578be7a6276580e35c9302aa5622f113 (patch)
treeadac24cf39366869dd233e2e5fd0a099daad1aea /gcc/d/expr.cc
parente8c9f4ab8f0c8ad8da5f7fb0f1a4956507fe64f5 (diff)
downloadgcc-df1f6b98578be7a6276580e35c9302aa5622f113.zip
gcc-df1f6b98578be7a6276580e35c9302aa5622f113.tar.gz
gcc-df1f6b98578be7a6276580e35c9302aa5622f113.tar.bz2
d: Merge upstream dmd, druntime d29e3eca45
D front-end changes: - Error messages related to operator overloading have been improved. D runtime changes: - Import latest fixes from druntime. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd d29e3eca45. * d-codegen.cc (can_elide_copy_p): Update for new front-end interface. * d-lang.cc (d_handle_option): Likewise. * expr.cc (class ExprVisitor): Likewise. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime d29e3eca45.
Diffstat (limited to 'gcc/d/expr.cc')
-rw-r--r--gcc/d/expr.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/d/expr.cc b/gcc/d/expr.cc
index f04ec33..da794ea 100644
--- a/gcc/d/expr.cc
+++ b/gcc/d/expr.cc
@@ -1622,7 +1622,7 @@ public:
if (dve->e1->op == EXP::structLiteral)
{
StructLiteralExp *sle = dve->e1->isStructLiteralExp ();
- sle->useStaticInit = false;
+ sle->useStaticInit (false);
}
FuncDeclaration *fd = dve->var->isFuncDeclaration ();
@@ -2773,7 +2773,7 @@ public:
/* Building sinit trees are delayed until after frontend semantic
processing has complete. Build the static initializer now. */
- if (e->useStaticInit && !this->constp_ && !e->sd->isCsymbol ())
+ if (e->useStaticInit () && !this->constp_ && !e->sd->isCsymbol ())
{
tree init = aggregate_initializer_decl (e->sd);
@@ -2841,7 +2841,7 @@ public:
tree field = get_symbol_decl (e->sd->vthis);
tree value = build_vthis (e->sd);
CONSTRUCTOR_APPEND_ELT (ve, field, value);
- gcc_assert (e->useStaticInit == false);
+ gcc_assert (e->useStaticInit () == false);
}
/* Build a constructor in the correct shape of the aggregate type. */