-
-
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 16460 - ICE for package visibility check in function literal
- fixed by skipping symbol-less scopes when establishing scope for FuncDeclaration - symbol-less scopes like Scope.startCTFE and FuncExp scopes don't require a symbol table (and thus don't create a scopesym)
- Loading branch information
1 parent
6b28536
commit 0c9374c
Showing
3 changed files
with
25 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,3 @@ | ||
| module imports.imp16460; | ||
|
|
||
| package enum val = 0; |
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 @@ | ||
| module imports.test16460; | ||
|
|
||
| void bug() | ||
| { | ||
| auto d1 = (){ | ||
| import imports.imp16460; | ||
| return val; | ||
| }; | ||
| enum d2 = (){ | ||
| import imports.imp16460; | ||
| return val; | ||
| }; | ||
| } |