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

--- Comment #2 from TC <rs2740 at gmail dot com> ---
(In reply to Martin Liška from comment #1)
> For:
> $ gcc --version
> gcc (SUSE Linux) 6.2.1 20160830 [gcc-6-branch revision 239856]
> 
> $ gcc pr78163.c
> pr78163.c:1:16: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
>  void f(void () &);
>                 ^
> pr78163.c:2:19: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
>  void g(void (*)() &);
>                    ^
> pr78163.c:3:14: error: expected ‘)’ before ‘&’ token
>  void h(void (&)() &);
>               ^
> pr78163.c:4:22: error: expected ‘)’ before ‘&’ token
>  void i(void (* const &)() &);
>                       ^
> Same for all releases I have, all of declarations are rejected. What's wrong?

This report is for C++, not C?

Reply via email to