Closed
Description
julia> while true
@time 1
end
Internal error: encountered unexpected error in runtime:
BoundsError(a=Array{Core.Compiler.BasicBlock, (10,)}[Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=1, stop=8), preds=Array{Int64, (1,)}[10], succs=Array{Int64, (1,)}[2]), Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=9, stop=14), preds=Array{Int64, (1,)}[1], succs=Array{Int64, (2,)}[5, 3]), Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=15, stop=17), preds=Array{Int64, (1,)}[2], succs=Array{Int64, (1,)}[4]), Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=18, stop=18), preds=Array{Int64, (1,)}[3], succs=Array{Int64, (1,)}[7]), Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=19, stop=24), preds=Array{Int64, (1,)}[2], succs=Array{Int64, (1,)}[6]), Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=25, stop=25), preds=Array{Int64, (1,)}[5], succs=Array{Int64, (1,)}[7]), Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=26, stop=42), preds=Array{Int64, (2,)}[4, 6], succs=Array{Int64, (2,)}[9, 8]), Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=43, stop=44), preds=Array{Int64, (1,)}[7], succs=Array{Int64, (0,)}[]), Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=45, stop=72), preds=Array{Int64, (1,)}[7], succs=Array{Int64, (1,)}[10]), Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=73, stop=77), preds=Array{Int64, (1,)}[9], succs=Array{Int64, (1,)}[1])], i=(0,))
ijl_bounds_error_ints at /home/kc/julia/src/rtutils.c:194
getindex at ./essentials.jl:13 [inlined]
getindex at ./abstractarray.jl:1263 [inlined]
replace_code_newstyle! at ./compiler/ssair/legacy.jl:89
ir_to_codeinf! at ./compiler/optimize.jl:154 [inlined]
transform_result_for_cache at ./compiler/typeinfer.jl:364 [inlined]
cache_result! at ./compiler/typeinfer.jl:395
_typeinf at ./compiler/typeinfer.jl:277
typeinf at ./compiler/typeinfer.jl:213
typeinf_ext_toplevel at ./compiler/typeinfer.jl:1073
typeinf_ext_toplevel at ./compiler/typeinfer.jl:1060
jfptr_typeinf_ext_toplevel_18438 at /home/kc/julia/usr/lib/julia/sys.so (unknown line)
Seems to have been introduced in 1.7.