Skip to content

Internal error: encountered unexpected error in runtime: TypeError... #39082

Closed
@thofma

Description

@thofma

Our packages AbstractAlgebra, Hecke, etc. started failing on master. I could reduce the error to the following MWE:

julia> struct Q end

julia> Base.typed_hvcat(a::Q, b, c...) = hvcat(b, c...)

julia> Q()[1//1 0; 0 1//1]
Internal error: encountered unexpected error in runtime:
TypeError(func=:<:, context="", expected=Type, got=T<:(Base.Rational{T} where T<:Integer))
[...]

(full backtrace: https://gist.github.com/thofma/23a37bd230758994871b42686de507ca)

julia> versioninfo()
Julia Version 1.7.0-DEV.205
Commit 5ee2d601ed* (2021-01-01 10:48 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.0 (ORCJIT, ivybridge)

This is working fine on 1.5.1 and on the release1.6 branch, so this is a regression on the master branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcompiler:inferenceType inferenceregressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions