Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue 17918 - Stop if the late semantic pass fails
No matter what the outcome of finishVtbl was the old code kept building the rest of the class. If the late semantic pass over the FunctionDeclaration fails we should abort the codegen phase instead of going on.
- Loading branch information
Showing
3 changed files
with
40 additions
and
4 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,11 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/imports/b17918a.d(7): Error: undefined identifier `_listMap` | ||
--- | ||
*/ | ||
import imports.b17918a; | ||
|
||
class Derived : Base | ||
{ | ||
} |
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,9 @@ | ||
module imports.b17918a; | ||
|
||
class Base | ||
{ | ||
auto byNode() | ||
{ | ||
return _listMap; | ||
} | ||
} |