Skip to content

Assertion error during type size limiting #51311

@maleadt

Description

@maleadt

Reduced MWE:

1@.a*b = 1*c::Tuple{1}
Internal error: encountered unexpected error in runtime:
AssertionError(msg="unhandled TypeVar / Vararg")
_limit_type_size at ./compiler/typelimits.jl:87
__limit_type_size at ./compiler/typelimits.jl:220
_limit_type_size at ./compiler/typelimits.jl:170
__limit_type_size at ./compiler/typelimits.jl:220
_limit_type_size at ./compiler/typelimits.jl:170
__limit_type_size at ./compiler/typelimits.jl:220
_limit_type_size at ./compiler/typelimits.jl:106
__limit_type_size at ./compiler/typelimits.jl:220
_limit_type_size at ./compiler/typelimits.jl:106
limit_type_size at ./compiler/typelimits.jl:21
abstract_call_method at ./compiler/abstractinterpretation.jl:556
abstract_call_gf_by_type at ./compiler/abstractinterpretation.jl:89
abstract_call_known at ./compiler/abstractinterpretation.jl:2056
abstract_call at ./compiler/abstractinterpretation.jl:2138
abstract_call at ./compiler/abstractinterpretation.jl:2131
abstract_call at ./compiler/abstractinterpretation.jl:2287
abstract_eval_call at ./compiler/abstractinterpretation.jl:2302
abstract_eval_statement_expr at ./compiler/abstractinterpretation.jl:2312
abstract_eval_statement at ./compiler/abstractinterpretation.jl:2606
abstract_eval_basic_statement at ./compiler/abstractinterpretation.jl:2902
typeinf_local at ./compiler/abstractinterpretation.jl:3099
typeinf_nocycle at ./compiler/abstractinterpretation.jl:3187
_typeinf at ./compiler/typeinfer.jl:247
typeinf at ./compiler/typeinfer.jl:216

Bisected to #48421.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcompiler:inferenceType inferencetypes and dispatchTypes, subtyping and method dispatch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions