dmd
dmd copied to clipboard
dmd D Programming Language compiler
This PR adds checks to report at compile time when a slice expression onto a array which size is known at compiletime is out of bounds. It does that by...
This avoids errors of the form "base class has incomplete type" for class A; // fwd decl class B : A {} class A {} Test case for this will...
…yval are declared prior
Implements the change proposal in [bug #21893](https://issues.dlang.org/show_bug.cgi?id=21893), where `std.atomic.atomicStore` would infinitely and recursively call itself out of a vaguely-referenced function [which the compiler interpreted as calling itself].
I'm not sure why we need `-betterC` in order to do this. It is possible to have: ``` module object; extern(D) void main() { } extern(C) void main() { }...
…lation units, resulting in incorrect code The problem now is that `FuncExp` in an `alias` is emitted in neither compilation unit, resulting in an undefined reference error.
Fixes issue 23934.
DMC doesn't support the `i` postfix, using `__imaginary` instead. But ImportC does support the `i` postfix, and not `__imaginary`. Provided the blocking https://github.com/dlang/dmd/pull/14902 is merged.
Implements dlang/dlang.org#3616. (This is #15245 after renaming the branch.)