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

[BUG] alias materialization of list #2753

Open
rd4com opened this issue May 19, 2024 · 0 comments
Open

[BUG] alias materialization of list #2753

rd4com opened this issue May 19, 2024 · 0 comments
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@rd4com
Copy link
Contributor

rd4com commented May 19, 2024

Bug description

Hello, here is a bug report, as suggested by @JoeLoser on the chat

def main():
    alias x = List("ok")
    var y = x
    print(y[0])

mojo run main.mojo

Please submit a bug report to https://github.com/modularml/mojo/issues and include the crash backtrace along with all the relevant source codes.

There might be other bugs related to this one, which could be referenced by @gabrieldemarmiesse.
(we were working a a bug on the chat)

Example that don't reproduce the bug:

def main():
    alias x = List(1)
    var y = x
    print(y[0])

It is possible that the bug is related to #2434 , #2637

Steps to reproduce

mojo run reproduce the bug but mojo build works

System information

- Ubuntu 23.10
- mojo 2024.5.1805 (341542be)
- modular 0.7.2 (d0adc668)
@rd4com rd4com added bug Something isn't working mojo-repo Tag all issues with this label labels May 19, 2024
@rd4com rd4com changed the title [BUG] [BUG] alias materialization of list May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

1 participant