-
-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7701 from ibuclaw/fix18507
fix Issue 18057 - [ICE] Segmentation fault (stack overflow) in Expression::ctfeInterpret() merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
- Loading branch information
Showing
3 changed files
with
34 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
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,16 @@ | ||
| /** | ||
| TEST_OUTPUT: | ||
| --- | ||
| fail_compilation/fail18057.d(16): Error: template instance RBNode!int `RBNode` is not a template declaration, it is a struct | ||
| fail_compilation/fail18057.d(13): Error: variable fail18057.RBNode.copy recursive initialization of field | ||
| --- | ||
| */ | ||
|
|
||
| // https://issues.dlang.org/show_bug.cgi?id=18057 | ||
| // Recursive field initializer causes segfault. | ||
| struct RBNode | ||
| { | ||
| RBNode *copy = new RBNode; | ||
| } | ||
|
|
||
| alias bug18057 = RBNode!int; |