Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 16273 - [REG 2.072a] dmd segfault with inheritance, templat…
…es, override
- Loading branch information
1 parent
5db88ac
commit 3c865d5
Showing
7 changed files
with
125 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// https://issues.dlang.org/show_bug.cgi?id=16273 | ||
|
||
class A() | ||
{ | ||
alias MyD = D!(); | ||
} | ||
|
||
class B | ||
{ | ||
void f() {} | ||
alias MyA = A!(); | ||
} | ||
|
||
class C : B | ||
{ | ||
override void f() {} | ||
} | ||
|
||
class D() : A!() | ||
{ | ||
void g() { new C; } | ||
} |