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

Different result between (cscout/icc) and (gcc/clang) after preprocessing. #29

Open
hashmap-kz opened this issue Jul 3, 2018 · 0 comments

Comments

@hashmap-kz
Copy link

hashmap-kz commented Jul 3, 2018

Hello.

I'm not really understand in what order this should expand, and why not otherwise, but: 'we have what we have'.

// The definition's and TokenSequence:

#define A(x) C(B, D
#define D A(1))
#define C(x,y) E(y)
#define E(y) #y
A(2))

Clang, gcc, tcc preprocess this text equally: "\"D\""

But cscout has another result: "A(1)")
(Intel compiler has similar result.)

Anyway, perhaps, this is an excellent example for the next test suite.

With respect and best regards.

@hashmap-kz hashmap-kz changed the title Different result between cscout and (gcc/clang) after preprocessing. Different result between (cscout/icc) and (gcc/clang) after preprocessing. Jul 5, 2018
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