-
-
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 17380 - [REG 2.074.0] Compiler segfaults on undefined symbol
- Loading branch information
1 parent
de3cb1a
commit a583f97
Showing
2 changed files
with
43 additions
and
5 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,21 @@ | ||
| /* TEST_OUTPUT: | ||
| --- | ||
| fail_compilation/test17380.d(12): Error: undefined identifier `ThisTypeDoesNotExistsAndCrahesTheCompiler` | ||
| --- | ||
| * https://issues.dlang.org/show_bug.cgi?id=17380 | ||
| */ | ||
|
|
||
| struct Int128 | ||
| { | ||
| Uint128 opCast() | ||
| { | ||
| return ThisTypeDoesNotExistsAndCrahesTheCompiler; | ||
| } | ||
| alias opCast this; | ||
| } | ||
|
|
||
| struct Uint128 | ||
| { | ||
| Int128 opCast() { return Int128.init; } | ||
| alias opCast this; | ||
| } |