Commit 11c683f
committed
Fix #12050: catch StackOverflow in tryNormalize
I suspect that the refactoring in #12053 turned #12050's infinite loop
into a stack overflow, which is easy to catch.
Although this doesn't completely fix the issue (we can't guarantee that
no stack-consuming loops exist), I think all the looping examples we
have so far error out gracefully.1 parent c14ec43 commit 11c683f
File tree
2 files changed
+40
-1
lines changed- compiler/src/dotty/tools/dotc/core
- tests/neg
2 files changed
+40
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4525 | 4525 | | |
4526 | 4526 | | |
4527 | 4527 | | |
4528 | | - | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
4529 | 4534 | | |
4530 | 4535 | | |
4531 | 4536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments