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 15812 - static struct inside extern(C++) class cannot be us… #10782

Merged
merged 1 commit into from Feb 12, 2020

Conversation

WalterBright
Copy link
Member

…ed as key to associative array

An incomplete error message.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
15812 regression static struct inside extern(C++) class cannot be used as key to associative array

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

To target stable perform these two steps:

  1. Rebase your branch to upstream/stable:
git rebase --onto upstream/stable upstream/master
  1. Change the base branch of your PR to stable

Testing this PR locally

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

dub fetch digger
dub run digger -- build "master + dmd#10782"

@thewilsonator
Copy link
Contributor

Won't this require updating an error message in the test suite?

@Geod24
Copy link
Member

Geod24 commented Feb 12, 2020

Hey what about that giant warning from dlang-bot about stable ?

@WalterBright
Copy link
Member Author

It's a trivial issue, and rather old.

@WalterBright WalterBright deleted the fix15812 branch February 12, 2020 07:17
@MoonlightSentinel
Copy link
Contributor

This seems like a workaround instead of a fix. Why should toHash require extern(D) but not opEquals()?

tramker pushed a commit to tramker/dmd that referenced this pull request Jul 24, 2020
fix Issue 15812 - static struct inside extern(C++) class cannot be us…
merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>

Signed-off-by: Martin Krejcirik <mk@krej.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants