Skip to content

Fix issue 20812: hasIndirections wrong when void has qualifiers. - #20813

Merged
thewilsonator merged 1 commit into
dlang:masterfrom
jmdavis:issue_20812
Feb 3, 2025
Merged

thewilsonator merged 1 commit into
dlang:masterfrom
jmdavis:issue_20812

Conversation

@jmdavis

@jmdavis jmdavis commented Feb 3, 2025

Copy link
Copy Markdown
Member

The current check that special cases static arrays of void doesn't take type qualifiers into account - e.g. void[42] is treated as having indirections, but const(void[42]) is not. This fixes that.

The current check that special cases static arrays of void doesn't take
type qualifiers into account - e.g. void[42] is treated as having
indirections, but const(void[42]) is not. This fixes that.
@jmdavis jmdavis added the Druntime Specific to druntime label Feb 3, 2025
@dlang-bot

Copy link
Copy Markdown

Thanks for your pull request, @jmdavis!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

⚠️⚠️⚠️ Warnings ⚠️⚠️⚠️

  • In preparation for migrating from Bugzilla to GitHub Issues, the issue reference syntax has changed. Please add the word "Bugzilla" to issue references. For example, Fix Bugzilla Issue 12345 or Fix Bugzilla 12345.(Reminder: the edit needs to be done in the Git commit message, not the GitHub pull request.)

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 "master + dmd#20813"

@thewilsonator thewilsonator linked an issue Feb 3, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Druntime Specific to druntime Merge:auto-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hasIndirections doesn't take qualifiers into account with void

3 participants