<div>On Wed Jan 08 2014 at 3:07:34 AM, Vladimir <<a href="mailto:VladimirPlyashkun@yandex.ru">VladimirPlyashkun@yandex.ru</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello, everyone. I have a strange problem. In my small app(i just traverse an<br>
AST), clang cannot parse expression:<br>
char* ptr = '\0';<br>
This nodes just dont appear in AST. Why clang ignored this statement or why<br>
it cant parse it? Character literal should just implicit cast to integral<br>
literal and then to null pointer.<br>
I've tried also test:<br>
char ch = '\0';<br>
this works good;<br>
I suggest, that the problem in DefinitionKinds.def or maybe similar, but i<br>
dont know what to do.<br></blockquote><div><br></div><div>Is it possible you're building in C++11 mode? This code is ill-formed in C++11, where a null pointer constant must be written as either an integer zero or as nullptr.</div>