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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to