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

ND_MOD missing from is_const_expr() #125

Open
sgraham opened this issue Mar 28, 2023 · 0 comments
Open

ND_MOD missing from is_const_expr() #125

sgraham opened this issue Mar 28, 2023 · 0 comments

Comments

@sgraham
Copy link

sgraham commented Mar 28, 2023

chibicc/parse.c

Line 1956 in 90d1f7f

case ND_DIV:

This makes this test case in constexpr.c:

ASSERT(2, ({ char x[12%10]; sizeof(x); }));

be a VLA rather than a constexpr.

(I happened to notice because I broke VLA's locally with some playing around I was doing. 😅)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant