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 standard detection for _Static_assert on MSVC #16

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

Invalid standard detection for _Static_assert on MSVC #16

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

Comments

@Hirrolot
Copy link
Owner

Hirrolot commented Aug 3, 2021

There is a typo in __STDC_VERSION__:

#elif defined(_MSC_VER) && __STDC__VERSION >= ML99_PRIV_C11_VERSION

Therefore, __STDC__VERSION is substituted with 0, thereby making the condition __STDC__VERSION >= ML99_PRIV_C11_VERSION always evaluate to false. Thus, even if _Static_assert is supported by MSVC, Metalang99 will emit an error:

#error Your compiler doesn't support decent diagnostic messages. \

@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