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 20696 - Should error when retrieving mangling while the typ… #10961

Merged
merged 1 commit into from
Mar 28, 2020

Conversation

WalterBright
Copy link
Member

…e is not yet final

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
20696 normal Should error when retrieving mangling while the type is not yet final

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

@WalterBright WalterBright force-pushed the fix20696 branch 3 times, most recently from 6e9f57a to 9983eda Compare March 24, 2020 09:34
@@ -11399,6 +11399,12 @@ Expression semanticX(DotIdExp exp, Scope* sc)
{
return new ErrorExp();
}
if (f.flags & (FUNCFLAG.purityInprocess | FUNCFLAG.safetyInprocess |
Copy link
Contributor

@RazvanN7 RazvanN7 Mar 26, 2020

Choose a reason for hiding this comment

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

I think that this will not catch nested functions:

void func(T)
{
    void foo()
    {
        pragma(msg, foo.mangleof);
    }
}

@andralex andralex merged commit 606b09d into dlang:master Mar 28, 2020
@Geod24
Copy link
Member

Geod24 commented Mar 28, 2020

What about @RazvanN7 's review: #10961 (comment) ?

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

Successfully merging this pull request may close these issues.

5 participants