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 20958 - incomplete semantic analysis when generating code f… #11323

Merged
merged 1 commit into from Jun 25, 2020

Conversation

WalterBright
Copy link
Member

…or function

This is a fix for a regression caused by a 5 year old PR #5166

The fix is a bit risky, so it shouldn't go into stable. For example, I can find no reason for lines 75,76 to be there, but they are part of the cause for the regression.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
20958 regression incomplete semantic analysis when generating code for function

⚠️⚠️⚠️ 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 run digger -- build "master + dmd#11323"

Copy link
Member

@ibuclaw ibuclaw left a comment

Choose a reason for hiding this comment

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

OK, let's see how we go with this...

@dlang-bot dlang-bot merged commit 4e27df9 into dlang:master Jun 25, 2020
@@ -72,8 +72,6 @@ extern (C++) void semanticTypeInfo(Scope* sc, Type t)
{
if (sc)
{
if (!sc.func)
Copy link
Member

Choose a reason for hiding this comment

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

could this change get a comment?

@UplinkCoder
Copy link
Member

Hmm it would be nice to be able to see the semantic dependency graph.

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