This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78163] New: ref-qualified function type incorrectly accepted in function parameter type
- From: "rs2740 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Oct 2016 07:58:40 +0000
- Subject: [Bug c++/78163] New: ref-qualified function type incorrectly accepted in function parameter type
- Auto-submitted: auto-generated
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.