-
-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 16348 - ICE with package visibility
- fix scopesym parent chain when using semanticScope - fixes getAccessModule for scope symbols in do bodies, try bodies, and else branches
- Loading branch information
1 parent
5a16fbb
commit 93c3dcf
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| module mypackage.bar; | ||
|
|
||
| package bool bar() | ||
| { | ||
| return false; | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // EXTRA_SOURCES: imports/test16348.d | ||
| module mypackage.foo; | ||
|
|
||
| void bug() | ||
| { | ||
| // removing the if-else also removes the segfault | ||
| if (true) {} | ||
| else | ||
| { | ||
| import mypackage.bar; | ||
| auto b = bar(); | ||
| } | ||
| } |