Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assertion failure: '0' on line 145 in file 'mtype.c
- Loading branch information
1 parent
1a2277c
commit 56276cb
Showing
3 changed files
with
9 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
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,2 @@ | ||
struct S(int N) { this(T!N) { } } | ||
alias S!1 M; |
56276cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test fail without the patch? I don't think the autotester can distinguish between a compiler crash and a compiler error, I've had to use a
static assert(!is(typeof()))
test instead in some cases, to avoid having an always-fail test.56276cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fail tests do detect compiler crashes as a failure of the test. Only the compiler exiting via a normal exit and with return code 1 is a 'successful' failure mode test. See test/d_do_test.d in the execute function.
56276cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, so it is. I guess my problem was due to something else.