This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81119] [8 Regression] -Wshadow warns on "typedef struct foo foo;"


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

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Mon Jun 19 14:13:58 2017
New Revision: 249369

URL: https://gcc.gnu.org/viewcvs?rev=249369&root=gcc&view=rev
Log:
        PR c++/81119
        * name-lookup.c (update_binding): Only warn about constructors
        hidden by functions.

        PR c++/81119
        * g++.dg/warn/pr81119.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/pr81119.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]