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 crashes in v3_core when using explicit all size in binary syntax #6707

Closed
ilya-klyuchnikov opened this issue Jan 18, 2023 · 0 comments · Fixed by #6713
Closed

erlc crashes in v3_core when using explicit all size in binary syntax #6707

ilya-klyuchnikov opened this issue Jan 18, 2023 · 0 comments · Fixed by #6713
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@ilya-klyuchnikov
Copy link
Contributor

ilya-klyuchnikov commented Jan 18, 2023

Describe the bug
erlc crashes

To Reproduce

-module(all).
-export([bin_all/1]).

bin_all(Bin) -> <<Bin:all/binary>>.
erlc all.erl
Function: bin_all/1

*** Internal compiler error ***
exception throw: nomatch
  in function  v3_core:make_bit_type/3 (v3_core.erl, line 1431)
  in call from v3_core:bin_elements/2 (v3_core.erl, line 1411)
  in call from v3_core:expr_bin/3 (v3_core.erl, line 1289)
  in call from v3_core:expr/2 (v3_core.erl, line 682)
  in call from v3_core:exprs/2 (v3_core.erl, line 621)
  in call from v3_core:clause/2 (v3_core.erl, line 284)
  in call from v3_core:clauses/2 (v3_core.erl, line 275)
  in call from v3_core:body/4 (v3_core.erl, line 265)

Expected behavior
No crash.

Affected versions
25.2

@ilya-klyuchnikov ilya-klyuchnikov added the bug Issue is reported as a bug label Jan 18, 2023
@bjorng bjorng added the team:VM Assigned to OTP team VM label Jan 19, 2023
@bjorng bjorng self-assigned this Jan 19, 2023
@bjorng bjorng linked a pull request Jan 20, 2023 that will close this issue
bjorng added a commit to bjorng/otp that referenced this issue Jan 20, 2023
…to maint

* bjorn/compiler/explicit-all/erlangGH-6707/OTP-18407:
  Eliminate compiler crash in binary construction
@bjorng bjorng closed this as completed in 0e2be1d Jan 20, 2023
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