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

No warnings when redefining empty named enumerations #575

Closed
Daniel-Cortez opened this issue Sep 30, 2020 · 1 comment
Closed

No warnings when redefining empty named enumerations #575

Daniel-Cortez opened this issue Sep 30, 2020 · 1 comment

Comments

@Daniel-Cortez
Copy link
Contributor

Issue description:

Normally the compiler warns the user when they define two enumerations with the same name:

enum test {
	elem1
};
enum test {}; // warning 201: redefinition of constant/macro (symbol "test1")

But if the first enum is empty, redefinition goes unnoticed:

enum test {};
enum test {}; // No warning(s)

Minimal complete verifiable example (MCVE):

See above.

Workspace Information:

  • Compiler version: 3.2.3664, 3.10.10
  • Command line arguments provided (or sampctl version):
  • Operating System:
@Daniel-Cortez
Copy link
Contributor Author

Fixed in #577.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants