[cfe-dev] Repeating declaration specifiers
Marcin Zalewski
marcin.zalewski at gmail.com
Sun Jun 19 23:53:33 PDT 2011
I hope that this has not been asked before, but does Clang allow
multiple declaration specifiers on purpose? See the following line of
code:
const const const const volatile const int const const volatile gggg = 8;
Clang produces no diagnostics on this. GCC says:
testt.cpp:8: error: duplicate ‘const’
testt.cpp:8: error: duplicate ‘volatile’
While I would say that I hope GCC is actually correct, I am not sure.
Any language lawyers who can help?
Thanks,
Marcin
More information about the cfe-dev
mailing list