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

Non-Constant Expressions in Clang9 #92

Open
Khaled431 opened this issue Nov 9, 2020 · 2 comments
Open

Non-Constant Expressions in Clang9 #92

Khaled431 opened this issue Nov 9, 2020 · 2 comments

Comments

@Khaled431
Copy link

Khaled431 commented Nov 9, 2020

As the title states, better_enum is throwing errors in switch cases now.
error: case value is not a constant expression

@aantron
Copy link
Owner

aantron commented Nov 13, 2020

Can you give a small example of a program that fails, show the message, and give the version or commit hash of the enum.h you are using?

@Khaled431
Copy link
Author

Khaled431 commented Nov 13, 2020

It's the latest version of the enum.h file (68ca02d) and the use case is during a switch statement. The code can be recreated by just creating a better_enums enum and then creating a switch statement that uses a field of type enum.

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

2 participants