-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression from version-1-6
to version-2-0
/version-2-2
/devel
with mutually recursive functions and Error: n(t) can raise an unlisted exception: Exception
#24765
Comments
!nim c proc n(d: var int)
proc s(p: int|int) {.raises: [CatchableError].} =
var t: int
if false: n(t)
proc n(d: var int) = s(0) |
🐧 Linux bisect by @metagn (collaborator)devel 👎 FAILOutput
Filesize stable 👎 FAILOutput
Filesize 2.2.2 👎 FAILOutput
Filesize 2.0.0 👎 FAILOutput
Filesize 1.6.20 👍 OKOutput
Filesize 1.4.8 👍 OKOutput
Filesize 1.2.18 👍 OKOutput
Filesize 1.0.10 👍 OKOutput
Filesize #1e15f975b ➡️ 🐛Diagnosticsringabout introduced a bug at
The bug is in the files:
The bug can be in the commits:
(Diagnostics sometimes off-by-one). Stats
🤖 Bug found in |
It seems to be an issue of |
Probably specifically because of these lines: Lines 1036 to 1038 in 850f327
By the time proc n() =
if false:
n()
proc foo() {.raises: [CatchableError].} =
n() |
Nim Version
Builds and runs:
Does not bulid:
Description
Current Output
Expected Output
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: