-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add recursion limit to type resolution.
This is part of #1867 - there is a fair bit more work to do, but this recursion limit gives a simple way to prevent overflows without a pretty unecessary cycle detector. Types within containers (like vectors) or references will continue to segfault - that happens at type unification. Then, in order to allow references, more will be necessary.
- Loading branch information
1 parent
cd4bde3
commit 4abc2c6
Showing
4 changed files
with
20 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
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,3 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
[error] <...>/recursive.hlt:6:15-6:20: type Direct cannot be resolved by its name | ||
[error] hiltic: aborting after errors |
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,8 @@ | ||
# @TEST-EXEC-FAIL: ${HILTIC} -p %INPUT > output 2>&1 | ||
# @TEST-EXEC: btest-diff output | ||
|
||
module Test { | ||
|
||
type Direct = Direct; | ||
|
||
} |