Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 15332 - ICE in e2ir.c: assert(irs->sthis) in visit(ThisExp)…
…, function literal with keyword 'function' calls method Set `FuncLiteralDeclaration.tok` to `TOKdelegate` if its `isNested()` actually returns `true`. This is not complete, temporary disable `compilable/test14973.d` case.
- Loading branch information
Showing
10 changed files
with
64 additions
and
75 deletions.
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
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
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
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
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,19 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/ice15332.d(16): Error: need 'this' for 'fun' of type 'int()' | ||
fail_compilation/ice15332.d(17): Error: need 'this' for 'var' of type 'int' | ||
--- | ||
*/ | ||
|
||
class C | ||
{ | ||
int fun() { return 5; } | ||
int var; | ||
|
||
void test() | ||
{ | ||
int a1 = function() { return fun; }(); | ||
int a2 = function() { return var; }(); | ||
} | ||
} |