https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59766
Louis Dionne <ldionne.2 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ldionne.2 at gmail dot com --- Comment #7 from Louis Dionne <ldionne.2 at gmail dot com> --- The following still fails on GCC trunk: struct T { friend auto f() { } }; Sample command line: › ~/code/gcc5/bin/g++ --version g++ (GCC) 5.0.0 20150326 (experimental) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. › ~/code/gcc5/bin/g++ ~/code/hana/test/worksheet.cpp -std=c++1y [...]: error: non-static data member declared ‘auto’ friend auto f() { } ^