-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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] Mojo crashes when attempting run str()
during compilation.
#2779
Comments
FYI @laszlokindrat as we were talking about this last week if I recall correctly. |
@thatstoasty Thanks for opening the ticket! Can you please provide the error message or trace you are getting? |
@laszlokindrat Sure! Here's the trace
|
@Mogball is this a potential issue with variadic packs in the compiler? |
After fixing the issue with packs, evaluation still fails due to a dependency on an external call to snprintf in stdlib for formatting ints. So unfortunately this is not something that can be supported at compile-time unless the implementation no longer depends on the external call. Thanks for filing the issue though, it helped plug a hole with interpreting packs. |
No problem, my use case will be covered once #1573 is resolved! |
Bug description
Running
str()
within in an alias causes the compiler to crash. I think we should be able to convert Stringables to String during compilation unless I'm missing something. Thanks!Steps to reproduce
Minimal example to reproduce the error:
System information
The text was updated successfully, but these errors were encountered: