[cfe-dev] Should we build semantically invalid nodes?

Argiris Kirtzidis akyrtzi at gmail.com
Fri Oct 24 04:29:53 PDT 2008

Argiris Kirtzidis wrote:
> To get more specific about Sebastian's patch, I tried it out and it 
> works quite well, Clang is pretty robust:
> typedef int fn(int,int);
> int f() {
>  int a;
>  reinterpret_cast<fn>(a)(1,2,3);
>  int (*fx)(int,int) = reinterpret_cast<fn>(a);
> }

I mean, Clang builds a nice AST tree of everything for the above snippet.

More information about the cfe-dev mailing list