[cfe-dev] Null CharacterLiteral Error

Vladimir VladimirPlyashkun at yandex.ru
Wed Jan 8 03:04:46 PST 2014


Hello, everyone. I have a strange problem. In my small app(i just traverse an
AST), clang cannot parse expression:
char* ptr = '\0';
This nodes just dont appear in AST. Why clang ignored this statement or why
it cant parse it? Character literal should just implicit cast to integral
literal and then to null pointer.
I've tried also test:
char ch = '\0';
this works good;
I suggest, that the problem in DefinitionKinds.def or maybe similar, but i
dont know what to do.



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Null-CharacterLiteral-Error-tp4036979.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list