[cfe-commits] Better const_cast support

Sebastian Redl sebastian.redl at getdesigned.at
Fri Sep 26 13:55:55 PDT 2008


Eli Friedman wrote:
> Take the following code:
> typedef int f(int);
> f func;
>   
That just crashes clang, by the way. The resulting function type has a 
null pointer for the parameter definitions, and the check for default 
arguments dereferences it. But with a slight adjustment, it works. I'll 
add it to the test cases and let it be handled correctly.

In the array case, g++ refuses deeper indirection, so the test case you 
gave fails. I'll keep it the way I have it now.

Sebastian



More information about the cfe-commits mailing list