This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81119] [8 Regression] -Wshadow warns on "typedef struct foo foo;"
- From: "nathan at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Jun 2017 14:14:30 +0000
- Subject: [Bug c++/81119] [8 Regression] -Wshadow warns on "typedef struct foo foo;"
- Auto-submitted: auto-generated
- References: <bug-81119-4@http.gcc.gnu.org/bugzilla/>
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