-
-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 10938 - ICE on recursive instantiation in opDispatch
By fixing issue 10736 (314a1cc), all of template instance semantic are reliably finished by the deferred mechanism. And it had removed the necessity of the code in `DotTemplateInstanceExp::semanticY` for the issue 4003. Therefore, just remove the unnecessary code to fix the ICE.
- Loading branch information
Showing
2 changed files
with
23 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/ice10938.d(12): Error: no property 'opts' for type 'ice10938.C' | ||
--- | ||
*/ | ||
|
||
class C | ||
{ | ||
this() | ||
{ | ||
this.opts["opts"] = 1; | ||
} | ||
|
||
auto opDispatch(string field : "opts")() | ||
{ | ||
return this.opts; // ICE -> compile time error | ||
} | ||
} | ||
|
||
void main() | ||
{ | ||
} |