Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[erlc] Internal consistency check failed: bad_arg_type #6648

Closed
RobinMorisset opened this issue Jan 10, 2023 · 0 comments · Fixed by #6651
Closed

[erlc] Internal consistency check failed: bad_arg_type #6648

RobinMorisset opened this issue Jan 10, 2023 · 0 comments · Fixed by #6651
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@RobinMorisset
Copy link
Contributor

On master:

f() ->
    [
        ok
     || <<X>> <= <<>>,
        <<Y:X>> <= <<>>,
        0 > Y,
        [
            Y
         || _ <- []
        ]
    ].

causes erlc to crash with the following error message:

bad_arg_type:1: function '-f/0-lc$^2/1-1-'/3+15:
  Internal consistency check failed - please report this bug.
  Instruction: {call,2,{f,23}}
  Error:       {bad_arg_type,{x,1},
                             {t_integer,{0,255}},
                             {t_integer,{'-inf',-1}}}:

It is not fixed by #6642

@RobinMorisset RobinMorisset added the bug Issue is reported as a bug label Jan 10, 2023
@jhogberg jhogberg added the team:VM Assigned to OTP team VM label Jan 10, 2023
@jhogberg jhogberg self-assigned this Jan 10, 2023
jhogberg added a commit that referenced this issue Jan 25, 2023
…relops-failure/GH-6648

compiler: Various type-related fixes and improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants