diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-03-13 12:28:05 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-03-13 13:20:02 +0100 |
commit | 7e28750395889d16a9cba49cd5935ced7dc00ce8 (patch) | |
tree | d2a981788cda569e1a226540c009c09ea1b4ac73 /gcc/testsuite/gdc.test/compilable | |
parent | 1b85638affe6c987a33427c54e0369b819cd7915 (diff) |
d: Merge upstream dmd 02a3fafc6, druntime 26b58167, phobos 16cb085b5.
D front-end changes:
- Import dmd v2.099.0.
- The deprecation period for D1-style operators has ended, any use
of the D1 overload operators will now result in a compiler error.
- `scope' as a type constraint on class, struct, union, and enum
declarations has been deprecated.
- Fix segmentation fault when emplacing a new front-end Expression
node during CTFE (PR104835).
D runtime changes:
- Import druntime v2.099.0.
- Fix C bindings for stdint types (PR104738).
- Fix bus error when allocating new array on the GC (PR104742).
- Fix bus error when allocating new pointer on the GC (PR104745).
Phobos changes:
- Import phobos v2.099.0.
- New function `bind' in `std.functional'.
gcc/d/ChangeLog:
* dmd/MERGE: Merge upstream dmd 02a3fafc6.
* dmd/VERSION: Update version to v2.099.0.
* imports.cc (ImportVisitor::visit (EnumDeclaration *)): Don't cache
decl in front-end AST node.
(ImportVisitor::visit (AggregateDeclaration *)): Likewise.
(ImportVisitor::visit (ClassDeclaration *)): Likewise.
libphobos/ChangeLog:
* libdruntime/MERGE: Merge upstream druntime 26b58167.
* src/MERGE: Merge upstream phobos 16cb085b5.
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable')
-rw-r--r-- | gcc/testsuite/gdc.test/compilable/commontype.d | 9 | ||||
-rw-r--r-- | gcc/testsuite/gdc.test/compilable/test7172.d | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/commontype.d b/gcc/testsuite/gdc.test/compilable/commontype.d index a740994d7b5..076e29baece 100644 --- a/gcc/testsuite/gdc.test/compilable/commontype.d +++ b/gcc/testsuite/gdc.test/compilable/commontype.d @@ -196,8 +196,7 @@ static assert(is( X!( C***, B*** ) == const(B**)* )); // `B***` static assert(is( X!( C*, I* ) == I* )); static assert(is( X!( I*, C* ) == I* )); -//static assert(Error!( C**, I** )); -static assert(is( X!( C**, I** ) == const(I*)* )); +static assert(Error!( C**, I** )); static assert(Error!( C*, D* )); // should work @@ -304,15 +303,13 @@ static assert(is( X!(C[4], B[4]) )); static assert(Error!( C[4], I[4] )); static assert(Error!( C[4], D[4] )); static assert(is( X!( C[4], const(B)[4] ) == const(B)[4] )); -//static assert(Error!( C[4], const(I)[4] )); -static assert(is( X!( C[4], const(I)[4] ) == const(I)[] )); +static assert(Error!( C[4], const(I)[4] )); static assert(Error!( C[4], const(D)[4] )); static assert(Error!( C*[4], B*[4] )); static assert(Error!( C*[4], I*[4] )); static assert(Error!( C*[4], D*[4] )); static assert(is( X!( C*[4], const(B*)[4] ) == const(B*)[] )); // !? -//static assert(Error!( C*[4], const(I*)[4] )); -static assert(is( X!( C*[4], const(I*)[4] ) == const(I*)[] )); +static assert(Error!( C*[4], const(I*)[4] )); static assert(Error!( C*[4], const(D*)[4] )); static assert(Error!( C*[4], B**[4] )); static assert(Error!( C*[4], const(B*)*[4] )); diff --git a/gcc/testsuite/gdc.test/compilable/test7172.d b/gcc/testsuite/gdc.test/compilable/test7172.d index a4cf663066e..013630bd483 100644 --- a/gcc/testsuite/gdc.test/compilable/test7172.d +++ b/gcc/testsuite/gdc.test/compilable/test7172.d @@ -1,3 +1,8 @@ +/* TEST_OUTPUT: +--- +compilable/test7172.d(14): Deprecation: `scope` as a type constraint is deprecated. Use `scope` at the usage site. +--- +*/ void main() { abstract class AbstractC{} |