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

            Bug ID: 78163
           Summary: ref-qualified function type incorrectly accepted in
                    function parameter type
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rs2740 at gmail dot com
  Target Milestone: ---

void f(void () &);
void g(void (*)() &);
void h(void (&)() &);
void i(void (* const &)() &);

None of these should be accepted. GCC accepts them all.

Reply via email to