-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ```
…k (dlang/dmd!15502)
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.
This reverts commit d04f986.
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`
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.
…(dlang/dmd!15774)
….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
We need it in `gen/asm-x86.h`.
To make the tests compile, I had to additionally remove the dubious check for static delegates. I haven't found any such check in DMD's glue layer.
To make `fail_compilation/main.d` happy.
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`.
Using the same names as GDC.
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).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.