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

Compiler generates bad code for make(<byte-string>, size: -1) #1532

Open
cgay opened this issue Sep 16, 2023 · 0 comments
Open

Compiler generates bad code for make(<byte-string>, size: -1) #1532

cgay opened this issue Sep 16, 2023 · 0 comments
Labels

Comments

@cgay
Copy link
Member

cgay commented Sep 16, 2023

Compiling make(<byte-string>, size: -1) in the playground results in this output:

Open Dylan 2023.1pre
computation *t3(0) := [METHOD-CALLi ^{<&method> make (singleton(<byte-string>))}
  (^{<&class> <byte-string>}, ^#[], ^' ', ^-1)] // tail call: -1 is not of type {<union>: #f, {<limited-integer>}}
emit Ktop_level_initializerF0I: -1 is not of type {<union>: #f, {<limited-integer>}}
Build of 'play-516754b46bc6' completed
in 0.957156 seconds
Illegal instruction

make(<string>, size: -1) is slightly different, with this output:

Open Dylan 2023.1pre
Internal error: -1 is not of type {<union>: #f, {<limited-integer>}}
Exiting with return code 9
in 0.242795 seconds
Illegal instruction
@cgay cgay added the Compiler label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant