Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 13394 - invariant fail to link since 2.066 when using separ…
…ate compilation
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 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,24 @@ | ||
module imports.link13394a; | ||
|
||
class A | ||
{ | ||
this() { } | ||
} | ||
|
||
class Btpl(T) : T | ||
{ | ||
this()() { } | ||
|
||
invariant() {} | ||
} | ||
|
||
alias B = Btpl!A; | ||
|
||
struct Stpl() | ||
{ | ||
void func()() {} | ||
|
||
invariant() {} | ||
} | ||
|
||
alias S = Stpl!(); |
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,13 @@ | ||
// COMPILE_SEPARATELY | ||
// EXTRA_SOURCES: imports/link13394a.d | ||
|
||
module link13394; | ||
import imports.link13394a; | ||
|
||
void main() | ||
{ | ||
auto b = new B(); | ||
|
||
auto s = S(); | ||
s.func(); | ||
} |