[Bug c++/59766] c++1y: declaring friend function with 'auto' return type deduction is rejected with bogus reason

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 14 15:30:00 GMT 2015


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

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Apr 14 15:29:27 2015
New Revision: 222095

URL: https://gcc.gnu.org/viewcvs?rev=222095&root=gcc&view=rev
Log:
    PR c++/59766
    * decl.c (grokdeclarator): Do not flag friends with deduced return.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn26.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c



More information about the Gcc-bugs mailing list