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

--- Comment #3 from Gert <gw.fossdev at gmail dot com> ---
Created attachment 38957
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38957&action=edit
test case with "enu" being a struct

I would also assume that this is a parsing issue. 

With enu being a struct the compilation fails always (also with -std=c++98 and
c++03)

> g++ -std=c++98 whitespace_eating-class.cc

whitespace_eating-class.cc:11:24: error: ISO C++ forbids declaration of 'wow'
with no type [-fpermissive]
       friend enu ::wow();
                        ^
whitespace_eating-class.cc:11:24: error: no 'int enu::wow()' member function
declared in class 'enu'

Reply via email to