-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
False warning on example marching square #8218
Comments
neozhaoliang
pushed a commit
that referenced
this issue
Jun 25, 2023
Issue: fix #8218 ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at ec8cb2c</samp> Add `static_assert` feature for compile-time assertions in Taichi. Modify `ast_transformer.py` to handle the `static_assert` decorator. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at ec8cb2c</samp> * Add support for `static_assert` decorator to enable compile-time assertions ([link](https://github.com/taichi-dev/taichi/pull/8217/files?diff=unified&w=0#diff-3e22417ffade4af0564893b98dc5101d714b8ba6fd4423ab5bc5129e360fee8fL538-R538), [link](https://github.com/taichi-dev/taichi/pull/8217/files?diff=unified&w=0#diff-3e22417ffade4af0564893b98dc5101d714b8ba6fd4423ab5bc5129e360fee8fR1119))
PGZXB
pushed a commit
to PGZXB/taichi
that referenced
this issue
Jul 13, 2023
Issue: fix taichi-dev#8218 ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at ec8cb2c</samp> Add `static_assert` feature for compile-time assertions in Taichi. Modify `ast_transformer.py` to handle the `static_assert` decorator. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at ec8cb2c</samp> * Add support for `static_assert` decorator to enable compile-time assertions ([link](https://github.com/taichi-dev/taichi/pull/8217/files?diff=unified&w=0#diff-3e22417ffade4af0564893b98dc5101d714b8ba6fd4423ab5bc5129e360fee8fL538-R538), [link](https://github.com/taichi-dev/taichi/pull/8217/files?diff=unified&w=0#diff-3e22417ffade4af0564893b98dc5101d714b8ba6fd4423ab5bc5129e360fee8fR1119))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
It shouldn't raise warning because the code inside static_assert should be in static scope.
To Reproduce
Log/Screenshots
The text was updated successfully, but these errors were encountered: