https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79331

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |7.0.1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
rejected with GCC 6:

t.C: In function ‘int bar()’:
t.C:5:12: error: invalid initialization of non-const reference of type ‘int
(*&)()’ from an rvalue of type ‘int (*)()’
     return [&f (foo)]
            ^

and clang:

t.C:5:12: error: expected expression
    return [&f (foo)] 
           ^

Reply via email to