We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minor one for now, this should generate a "duplicate case label" or similar error.
int func(int n) { switch (n) { case 2 + 2: return 1; case 4: return 2; } return 0; }
The text was updated successfully, but these errors were encountered:
Yup. Case labels are actually ranges because of GNU extension https://gcc.gnu.org/onlinedocs/gcc/Case-Ranges.html, we need to also warn on something like 3 ... 7 and 5 ... 10.
Sorry, something went wrong.
Fixed in 1a4f625.
No branches or pull requests
Minor one for now, this should generate a "duplicate case label" or similar error.
The text was updated successfully, but these errors were encountered: