re PR c++/81119 (-Wshadow warns on "typedef struct foo foo;")
authorNathan Sidwell <nathan@acm.org>
Mon, 19 Jun 2017 14:13:58 +0000 (14:13 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 19 Jun 2017 14:13:58 +0000 (14:13 +0000)
commitc14c0b1568f84e974152d2e2c1bc3da384a16f2d
tree57553ed133097cb2871583923f1bdbdb7fbe84d2
parenta6e5212a77e34682cfb591ed80e7166eaa895365
re PR c++/81119 (-Wshadow warns on "typedef struct foo foo;")

PR c++/81119
* name-lookup.c (update_binding): Only warn about constructors
hidden by functions.

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

From-SVN: r249369
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr81119.C [new file with mode: 0644]