aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/dmd/constfold.d
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2024-02-12 16:46:33 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2024-02-12 16:55:33 +0100
commit2dde675ff48600188d3e892d191a2345bad2e6ae (patch)
treebbef7d663cf48cc8d2238aa0098732a14321a0e9 /gcc/d/dmd/constfold.d
parent3c57b1c12a8e34d50bdf6aaf44146760db6d1b33 (diff)
downloadgcc-2dde675ff48600188d3e892d191a2345bad2e6ae.zip
gcc-2dde675ff48600188d3e892d191a2345bad2e6ae.tar.gz
gcc-2dde675ff48600188d3e892d191a2345bad2e6ae.tar.bz2
d: Merge dmd, druntime 11240a9663
D front-end changes: - Import latest fixes from dmd v2.107.0. D runtime changes: - Import latest fixes from druntime v2.107.0. Included in the merge are the fix for PR113772, and new testsuite directives to enable fixing PR104739. PR d/113772 gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 11240a9663. * d-builtins.cc (build_frontend_type): Update for new front-end interface. * types.cc (same_type_p): Likewise. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime 11240a9663.
Diffstat (limited to 'gcc/d/dmd/constfold.d')
-rw-r--r--gcc/d/dmd/constfold.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/d/dmd/constfold.d b/gcc/d/dmd/constfold.d
index f5d2b60..0686e1b 100644
--- a/gcc/d/dmd/constfold.d
+++ b/gcc/d/dmd/constfold.d
@@ -36,6 +36,7 @@ import dmd.root.utf;
import dmd.sideeffect;
import dmd.target;
import dmd.tokens;
+import dmd.typesem : toDsymbol, equivalent;
private enum LOG = false;
@@ -1038,7 +1039,6 @@ UnionExp Cast(const ref Loc loc, Type type, Type to, Expression e1)
else if (tb.ty == Tstruct && e1.op == EXP.int64)
{
// Struct = 0;
- import dmd.typesem : toDsymbol;
StructDeclaration sd = tb.toDsymbol(null).isStructDeclaration();
assert(sd);
auto elements = new Expressions();