Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade frontend & libs to v2.106 #4522

Merged
merged 305 commits into from
Nov 7, 2023
Merged

Conversation

kinke
Copy link
Member

@kinke kinke commented Nov 5, 2023

No description provided.

RazvanN7 and others added 30 commits August 3, 2023 18:48
Static variables used in a default argument context are now emitted using
their fully qualified name. This is to avoid generating ambiguous
assignments, for instance:
```
struct S
{
    __gshared int param;
    void example(int param = S.param);
}
```
In the above example, the visitor for dtoh VarExp will omit the `S`
parent, as the static field is nested in `S`.
```
    void example(int param = param);
```
Although D understands that `param` refers to the static field, this is
not the case in C++, and the compilation will fail with:
```
error: parameter 'param' may not appear in this context
```
Use supplemental line to show location of variable.
Break out skip tests from switches.d test to new file.
Make switches.d test use only one TEST_OUTPUT block for AUTO_UPDATE
compat.
Tweak switch skipping variable errors

Signed-off-by: Dennis <dkorpel@users.noreply.github.com>
Signed-off-by: Petar Kirov <PetarKirov@users.noreply.github.com>
Merged-on-behalf-of: Petar Kirov <PetarKirov@users.noreply.github.com>
Improve expected `;` after expression error

Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
…uld print context when -verrors=context (dlang/dmd!15529)

* Use separate line for extra Loc in various error messages
* Use errorSupplemental for expected `}` following members error

* Tweak declaration start message
* Improve @nogc closure error

* Add blank line after non-braced `if`
RazvanN7 and others added 8 commits November 1, 2023 14:16
merge stable

Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Iain Buclaw <ibuclaw@users.noreply.github.com>
* Fix static associative array initialization to always use hashOf at
runtime. We do this by storing the hash function in the Impl instead of
using the passed-in TypeInfo for the key.
….106

Conflicts:
	dmd/common/string.d
	dmd/constfold.d
	dmd/dinterpret.d
	dmd/doc.d
	dmd/dsymbol.d
	dmd/expression.h
	dmd/globals.d
	dmd/hdrgen.d
	dmd/mars.d
	dmd/root/filename.d
	dmd/statement.d
	dmd/statementsem.d
	dmd/target.d
	dmd/typinf.d
	runtime/druntime/src/core/internal/backtrace/dwarf.d
	tests/dmd/run.d
kinke added 5 commits November 6, 2023 01:23
LDC does need it (`runnable/funclit.d` regressed after removing the check).
Checking `outerVars` should be much better than the previous check,
which only allowed module-level lambdas.
Tested by `fail_compilation/test24084.d`.
@kinke kinke marked this pull request as ready for review November 6, 2023 21:03
The C inline asm is apparently treated as DMD-style inline asm;
our assembler then chokes on the lowercase register names (and an
unsupported `[Value+4]`…).

Note that the test is enabled for 32-bit Windows only (upstream).
@kinke kinke merged commit f847af0 into ldc-developers:master Nov 7, 2023
@kinke kinke deleted the merge-2.106 branch November 7, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.