diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2023-09-23 12:27:26 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2023-09-23 13:01:16 +0200 |
commit | d6679fa2d65316e80a267c94c17ad9e23f433f77 (patch) | |
tree | eca9ecef18b21760629c54620785c18bc4452bbd /gcc/d/dmd/arrayop.d | |
parent | 59d27cc55a0588ed7b03bef804662cb844e8a24d (diff) | |
download | gcc-d6679fa2d65316e80a267c94c17ad9e23f433f77.zip gcc-d6679fa2d65316e80a267c94c17ad9e23f433f77.tar.gz gcc-d6679fa2d65316e80a267c94c17ad9e23f433f77.tar.bz2 |
d: Merge upstream dmd, druntime 4574d1728d, phobos d7e79f024.
D front-end changes:
- Import dmd v2.105.0.
- Catch clause must take only `const' or mutable exceptions.
- Creating a `scope' class instance with a non-scope constructor
is now `@system' only with `-fpreview=dip1000'.
- Global `const' variables can no longer be initialized from a
non-shared static constructor
D runtime changes:
- Import druntime v2.105.0.
Phobos changes:
- Import phobos v2.105.0.
gcc/d/ChangeLog:
* dmd/MERGE: Merge upstream dmd 4574d1728d.
* dmd/VERSION: Bump version to v2.105.0.
* d-diagnostic.cc (verror): Remove.
(verrorSupplemental): Remove.
(vwarning): Remove.
(vwarningSupplemental): Remove.
(vdeprecation): Remove.
(vdeprecationSupplemental): Remove.
(vmessage): Remove.
(vtip): Remove.
(verrorReport): New function.
(verrorReportSupplemental): New function.
* d-lang.cc (d_parse_file): Update for new front-end interface.
* decl.cc (d_mangle_decl): Update for new front-end interface.
* intrinsics.cc (maybe_set_intrinsic): Update for new front-end
interface.
libphobos/ChangeLog:
* libdruntime/MERGE: Merge upstream druntime 4574d1728d.
* src/MERGE: Merge upstream phobos d7e79f024.
Diffstat (limited to 'gcc/d/dmd/arrayop.d')
-rw-r--r-- | gcc/d/dmd/arrayop.d | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/d/dmd/arrayop.d b/gcc/d/dmd/arrayop.d index 908855e..d843073 100644 --- a/gcc/d/dmd/arrayop.d +++ b/gcc/d/dmd/arrayop.d @@ -22,14 +22,12 @@ import dmd.dsymbol; import dmd.expression; import dmd.expressionsem; import dmd.func; -import dmd.globals; import dmd.hdrgen; import dmd.id; import dmd.identifier; import dmd.location; import dmd.mtype; import dmd.common.outbuffer; -import dmd.statement; import dmd.tokens; import dmd.visitor; @@ -194,7 +192,7 @@ private Expressions* buildArrayOp(Scope* sc, Expression e, Objects* tiargs) Expressions* args; public: - extern (D) this(Scope* sc, Objects* tiargs) scope + extern (D) this(Scope* sc, Objects* tiargs) scope @safe { this.sc = sc; this.tiargs = tiargs; @@ -276,7 +274,7 @@ bool isArrayOpImplicitCast(TypeDArray tfrom, TypeDArray tto) /*********************************************** * Test if expression is a unary array op. */ -bool isUnaArrayOp(EXP op) +bool isUnaArrayOp(EXP op) @safe { switch (op) { @@ -292,7 +290,7 @@ bool isUnaArrayOp(EXP op) /*********************************************** * Test if expression is a binary array op. */ -bool isBinArrayOp(EXP op) +bool isBinArrayOp(EXP op) @safe { switch (op) { @@ -315,7 +313,7 @@ bool isBinArrayOp(EXP op) /*********************************************** * Test if expression is a binary assignment array op. */ -bool isBinAssignArrayOp(EXP op) +bool isBinAssignArrayOp(EXP op) @safe { switch (op) { |