http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46115
Summary: Feature request: anonymous functions (complementing
anon aggregates)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: [email protected]
ReportedBy: [email protected]
It would be great if GCC would consider addition of anonymous functions along
the lines of anonymous aggreates, i.e. deferring the formal parameters from the
preceding cast expression.
Example:
void (*func_ptr)(int) = (void (*)(int i)) { printf ("%i", i); };