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

Incorrect treatment of consecutive ## operators #378

Open
chrchr-github opened this issue Oct 13, 2024 · 0 comments
Open

Incorrect treatment of consecutive ## operators #378

chrchr-github opened this issue Oct 13, 2024 · 0 comments

Comments

@chrchr-github
Copy link
Contributor

From llvm/llvm-project#112122:

#define FOO(a, b, c) a ## b ## c, a ## ## c
FOO (x, , y)
FOO (x, 42, y)

Output:

xy  , x# "y"
x42y  , x# "y"

This diverges from both gcc and clang.

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