Null CharacterLiteral Error

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.

Works for Clang, so there must be something else going on in your program:

blaikie@blaikie:~/dev/scratch$ clang+±tot -Xclang -ast-dump ast.cpp -w

TranslationUnitDecl 0x5ec3190 <>

-TypedefDecl 0x5ec36d0 <> __int128_t ‘__int128’

-TypedefDecl 0x5ec3730 <> __uint128_t ‘unsigned __int128’

-TypedefDecl 0x5ec3af0 <> __builtin_va_list ‘__va_list_tag [1]’

`-VarDecl 0x5ec3b80 <ast.cpp:1:1, col:13> ptr ‘char *’

`-ImplicitCastExpr 0x5f0b030 col:13 ‘char *’

`-CharacterLiteral 0x5ec3bd8 col:13 ‘char’ 0

1 warning generated.

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.