Skip to content

Internal error with StackOverflowError while compiling a function #37872

Closed
@rfourquet

Description

@rfourquet

MWE:

julia> function swapliterals!(@nospecialize(swaps::AbstractDict))
           swaps === Base.ImmutableDict(Int128 => :big)
       end
swapliterals! (generic function with 1 method)

julia> swapliterals!(Dict(Int=>Int))
Internal error: encountered unexpected error during compilation of swapliterals!:
StackOverflowError()
jl_type_intersection_env_s at /local/src/julia/src/subtype.c:3305
emit_f_is at /local/src/julia/src/codegen.cpp:2553
emit_bits_compare at /local/src/julia/src/codegen.cpp:2503
operator() at /local/src/julia/src/codegen.cpp:2573
emit_guarded_test<emit_f_is(jl_codectx_t&, const jl_cgval_t&, const jl_cgval_t&, llvm::Value*, llvm::Value*)::<lambda()>&> at /local/src/julia/src/codegen.cpp:
2322
operator() at /local/src/julia/src/codegen.cpp:2354 [inlined]
[...]

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorcompiler:codegenGeneration of LLVM IR and native code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions