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

Fix Issue 23083 - .tupleof on static array rvalue evaluates expressio… #14068

Merged
merged 1 commit into from May 4, 2022

Conversation

pbackus
Copy link
Contributor

@pbackus pbackus commented May 3, 2022

…n multiple times


Targeting stable because this affects a newly-introduced language feature in 2.100.

@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @pbackus! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Auto-close Bugzilla Severity Description
23083 normal .tupleof on static array rvalue evaluates expression multiple times

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + dmd#14068"

@kinke
Copy link
Contributor

kinke commented May 3, 2022

Not sure how that's possible (passing merge checks), but stable currently segfaults asserts for intel-intrinsics: https://buildkite.com/dlang/dmd/builds/26384#5fb8e990-1c9e-4a19-89cd-e46f9dbf5cdd

The same v1.10.1 (2 days old) works with master though: https://buildkite.com/dlang/dmd/builds/26388#996540d7-b1c2-4536-84e3-78df58793bc2

@pbackus
Copy link
Contributor Author

pbackus commented May 3, 2022

The segfault is probably issue 23009, which was fixed in master by PR #13977 but didn't make the cutoff for stable.

Edit: never mind, I was confused because there are two copies of the commit, one in master (8f8b256) and one in stable (c19baac).

@kinke kinke merged commit 3a66d2f into dlang:stable May 4, 2022
@kinke
Copy link
Contributor

kinke commented May 4, 2022

(merged eagerly; gdc 12 is to be released soon)

@pbackus pbackus deleted the fix-23083 branch May 4, 2022 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants