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 23589 - [REG2.095] Purity check special case gives circular reference error #14750

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Dec 28, 2022

I feel like this is another case of running semantic-related things in the wrong place - or not having a clear separation between resolving types/sizes, and doing validation checks.

This looks wrong, but it keeps both the introducing, and regression tests happy. @kinke ?

@ibuclaw ibuclaw added Severity:Regression PRs that fix regressions Severity:Bug Fix labels Dec 28, 2022
@ibuclaw ibuclaw requested a review from kinke December 28, 2022 21:52
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Auto-close Bugzilla Severity Description
23589 regression [REG2.095] Purity check special case gives circular reference error.

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#14750"

@JohanEngelen
Copy link
Contributor

I think it's best if you can add these references in the comments below // accessing empty structs is pure:

https://issues.dlang.org/show_bug.cgi?id=18694
https://issues.dlang.org/show_bug.cgi?id=21464
https://issues.dlang.org/show_bug.cgi?id=23589

@ibuclaw
Copy link
Member Author

ibuclaw commented Dec 30, 2022

I'll let @kinke analyze this ex post facto.

@ibuclaw ibuclaw merged commit 4b5a782 into dlang:stable Dec 30, 2022
@ibuclaw ibuclaw deleted the issue23589 branch December 30, 2022 14:29
JohanEngelen added a commit to weka/ldc that referenced this pull request Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants