[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
Thu Apr 23 13:21:00 GMT 2015


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

--- Comment #14 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Apr 23 13:21:06 2015
New Revision: 222365

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

Added:
    branches/gcc-4_9-branch/gcc/testsuite/g++.dg/cpp1y/auto-fn26.C
Modified:
    branches/gcc-4_9-branch/gcc/cp/ChangeLog
    branches/gcc-4_9-branch/gcc/cp/decl.c



More information about the Gcc-bugs mailing list