[Bug c++/59766] New: c++1y: declaring friend function with 'auto' return type deduction is rejected with bogus reason
mizvekov at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 10 23:59:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59766
Bug ID: 59766
Summary: c++1y: declaring friend function with 'auto' return
type deduction is rejected with bogus reason
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mizvekov at gmail dot com
Simple example showing the problem:
struct foo {
friend auto test(const foo &) { return 0; }
};
g++ rejects this with:
test.cc:2:30: error: non-static data member declared ‘auto’
friend auto test(const foo &) { return 0; }
More information about the Gcc-bugs
mailing list