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

stack overflow maybe related to comptime #15026

Open
david4r4 opened this issue Mar 20, 2023 · 4 comments
Open

stack overflow maybe related to comptime #15026

david4r4 opened this issue Mar 20, 2023 · 4 comments
Labels
bug Observed behavior contradicts documented or intended behavior frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone

Comments

@david4r4
Copy link
Contributor

Zig Version

0.11.0-dev.2168+322ace70f

Steps to Reproduce and Observed Behavior

I haven't been able to reproduce it with a more minimal case because I don't get to understand why it's crashing. Probably it's related to the other comptime stack overflow bugs already reported.
To reproduce:

git clone https://github.com/davidgm94/rise.git
git checkout zig-stack-overflow
zig build

Stack trace (it's large)

Expected Behavior

A compile error.

@david4r4 david4r4 added the bug Observed behavior contradicts documented or intended behavior label Mar 20, 2023
@david4r4
Copy link
Contributor Author

david4r4 commented Mar 20, 2023

Any guide on how to work around the crash would be appreciated since I am stuck here and I can't tell why it's happening. Thank you very much.

@david4r4
Copy link
Contributor Author

I think the issue has to do with a recursive anytype utilization, but I am yet to confirm this

@nektro
Copy link
Contributor

nektro commented Mar 21, 2023

maybe related #13380

@andrewrk
Copy link
Member

likely a duplicate of #13724

@andrewrk andrewrk added this to the 0.12.0 milestone Apr 10, 2023
@andrewrk andrewrk added the frontend Tokenization, parsing, AstGen, Sema, and Liveness. label Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Projects
None yet
Development

No branches or pull requests

3 participants