Skip to content

cleaner fix for Issue 18480 - dmd hangs with self-alias declaration#7954

Merged
MartinNowak merged 2 commits intodlang:stablefrom
MartinNowak:fix18480
Feb 27, 2018
Merged

cleaner fix for Issue 18480 - dmd hangs with self-alias declaration#7954
MartinNowak merged 2 commits intodlang:stablefrom
MartinNowak:fix18480

Conversation

@MartinNowak
Copy link
Member

  • fixed by detecting alias sym = sym; during semantic
  • small adoption of assertion in mostVisibleOverload to deal with
    alias error expression (type = Type.terror) in overload

see #7930 for previous workaround

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @MartinNowak!

Bugzilla references

Auto-close Bugzilla Severity Description
18480 regression [Reg 2.079] dmd hangs with self-alias declaration

@MartinNowak
Copy link
Member Author

FYI @timotheecour and @RazvanN7, also see #7930 (comment).

- fixed by detecting `alias sym = sym;` during semantic
- small adoption of assertion in mostVisibleOverload to deal with
  alias error expression (type = Type.terror) in overload
@JinShil
Copy link
Contributor

JinShil commented Feb 25, 2018

Thanks, @MartinNowak

@MartinNowak MartinNowak merged commit 2ab13f5 into dlang:stable Feb 27, 2018
@MartinNowak MartinNowak deleted the fix18480 branch February 27, 2018 15:08
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.

4 participants