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

Preprocessor allows extraneous tokens in preprocessor expression #687

Open
ehaas opened this issue Apr 16, 2024 · 0 comments
Open

Preprocessor allows extraneous tokens in preprocessor expression #687

ehaas opened this issue Apr 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ehaas
Copy link
Collaborator

ehaas commented Apr 16, 2024

This doesn't issue an error even though it should:

#if 1 < ABC 2
#endif

Identifiers, preprocessor numbers, and unary operators all seem to be incorrectly allowed currently. They're allowed regardless of position (before, after, or even in the middle of an expression).

@ehaas ehaas added the bug Something isn't working label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant