This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/46115] New: Feature request: anonymous functions (complementing anon aggregates)
- From: "robert.staudinger at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Oct 2010 12:39:26 +0000
- Subject: [Bug c/46115] New: Feature request: anonymous functions (complementing anon aggregates)
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: robert.staudinger@gmail.com
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); };