[Bug c++/82710] [8 Regression] Incorrect warning:unnecessary parentheses in declaration of global friend functions [-Werror=parentheses]

nathan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 2 18:27:00 GMT 2017


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

--- Comment #5 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Thu Nov  2 18:26:29 2017
New Revision: 254349

URL: https://gcc.gnu.org/viewcvs?rev=254349&root=gcc&view=rev
Log:
[PR c++/82710] false positive paren warning

https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00119.html
        PR c++/82710
        * decl.c (grokdeclarator): Don't warn when parens protect a return
        type from a qualified name.

        PR c++/82710
        * g++.dg/warn/pr82710.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/pr82710.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list