This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/46115] New: Feature request: anonymous functions (complementing anon aggregates)


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); };


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]