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 20183 - Assigning statement scope of struct literal or temp… #10945

Merged
merged 1 commit into from Jun 10, 2020

Conversation

WalterBright
Copy link
Member

…orary to variable with longer lifetime

There's some code commonality that can be compressed, but only after this proves out.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
20183 normal Assigning statement scope of struct literal or temporary to variable with longer lifetime

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

@atilaneves atilaneves merged commit 46e941b into dlang:master Jun 10, 2020
@WalterBright WalterBright deleted the fix20183 branch June 10, 2020 10:44
@MoonlightSentinel
Copy link
Contributor

!(va.storage_class & STC.temp) && va.ident != Id.withSym &&
sc.func.setUnsafe())
{
if (!gag)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global.gag ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants