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

Invalid C11 standard detection for _Static_assert #15

Closed
Hirrolot opened this issue Aug 3, 2021 · 0 comments
Closed

Invalid C11 standard detection for _Static_assert #15

Hirrolot opened this issue Aug 3, 2021 · 0 comments
Assignees

Comments

@Hirrolot
Copy link
Owner

Hirrolot commented Aug 3, 2021

It seems that we use ML99_PRIV_C11_VERSION prior to its definition:

#if __STDC__ && __STDC_VERSION__ >= ML99_PRIV_C11_VERSION

Therefore, it evaluates to 0, thus making the condition __STDC_VERSION__ >= ML99_PRIV_C11_VERSION invalid. This may result in emitting _Static_assert where it may not be supported (e.g., on C99).

@Hirrolot Hirrolot self-assigned this Aug 3, 2021
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