-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcompiler:inferenceType inferenceType inferenceregression 1.10Regression in the 1.10 releaseRegression in the 1.10 releaseregression 1.11Regression in the 1.11 releaseRegression in the 1.11 releaseregression 1.12Regression in the 1.12 releaseRegression in the 1.12 release
Description
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.10.4 (2024-06-04)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> f(::Val{1000}) = 1000
f (generic function with 1 method)
julia> f(::Val{N}) where N = f(Val(N-1))
f (generic function with 2 methods)
julia> f(Val(2000))
Internal error: stack overflow in type inference of f(Base.Val{2000}).
This might be caused by recursion over very long tuples or argument lists.
1000
In 1.9 this didn't print an error.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcompiler:inferenceType inferenceType inferenceregression 1.10Regression in the 1.10 releaseRegression in the 1.10 releaseregression 1.11Regression in the 1.11 releaseRegression in the 1.11 releaseregression 1.12Regression in the 1.12 releaseRegression in the 1.12 release