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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Incorrect                   |[8 Regression] Incorrect
                   |warning:unnecessary         |warning:unnecessary
                   |parentheses in declaration  |parentheses in declaration
                   |of global friend functions  |of global friend functions
                   |[-Werror=parentheses]       |[-Werror=parentheses]

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Self-contained testcase (rather than a zip file with several files in, which
https://gcc.gnu.org/bugs/ says we don't want):

class X;

X friendFunc();

namespace nm
{
  class TestClass
  {
    friend X (::friendFunc());
  };
}

Reply via email to