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++/78163] New: ref-qualified function type incorrectly accepted in function parameter type


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.

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