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 19734 - isDataseg returns true for non-static declarations #9451

Merged
merged 2 commits into from Mar 14, 2019

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Mar 13, 2019

This is the quick fix to avoid ICE. The real fix should be handled by issue 19735.

@ibuclaw ibuclaw added the GDC Gnu D Compiler label Mar 13, 2019
@dlang-bot
Copy link
Contributor

dlang-bot commented Mar 13, 2019

Thanks for your pull request, @ibuclaw!

Bugzilla references

Auto-close Bugzilla Severity Description
19734 blocker isDataseg returns true for non-static declarations
19735 critical Error: variable extern symbols cannot have initializers

⚠️⚠️⚠️ 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#9451"

@ibuclaw
Copy link
Member Author

ibuclaw commented Mar 13, 2019

Wonderful, the compiler generated static __critsec variable is marked as STCtemp.

@WalterBright
Copy link
Member

Looking at the bug report, the problem isn't in isDataseg(), it's that extern is propagating into the function scope.

@ibuclaw
Copy link
Member Author

ibuclaw commented Mar 13, 2019

Dug a little further to find the place where it erroneously propagates.

@PetarKirov
Copy link
Member

PetarKirov commented Mar 14, 2019

The CIs look promising. I've deprecated a Linux test run on the autotester as it was due to an OOM.

@dlang-bot dlang-bot merged commit 3a01f61 into dlang:master Mar 14, 2019
@ibuclaw ibuclaw deleted the issue19734 branch March 14, 2019 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants