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

_Static_assert on gcc < 6 #59

Open
adeason opened this issue Feb 10, 2023 · 0 comments
Open

_Static_assert on gcc < 6 #59

adeason opened this issue Feb 10, 2023 · 0 comments

Comments

@adeason
Copy link

adeason commented Feb 10, 2023

Commit a4194fd changed HEDLEY_STATIC_ASSERT to require gcc >= 6 to use _Static_assert, but it seems to work fine as far back as at least gcc 4.6.4, as far as I can tell. I'm just wondering if there is some issue with gcc pre-6 that I'm not immediately seeing? It works even with -std=c89. I do see a warning with -pedantic, but that also happens with gcc 6.

https://godbolt.org/z/6q5j856na

https://godbolt.org/z/nKaP41WeP

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