[cfe-commits] [PATCH] Treat "int (^x)()" as "int (^x)(void)" instead of a K&R style prototype

Fariborz Jahanian fjahanian at apple.com
Sun May 31 08:58:52 PDT 2009

For blocks in gcc we followed the rules for function pointers in the  
host language wrt to block pointers.
This change will make it more c++-ish and may break some of our  
internal projects.
But it is a new feature and it is good to tighten up the rules. So it  
is OK.

- Fariborz

On May 31, 2009, at 4:25 AM, Eli Friedman wrote:

> Patch per subject; this seems like the right thing to do, considering
> the spec and the comment for ASTContext::typesAreBlockCompatible.
> Also, the current rules for K&R-style block pointers are simply
> confusing.  I'm running it by the list first to make sure this isn't
> likely to break common usages of blocks.
> -Eli
> <x.txt>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

More information about the cfe-commits mailing list