re PR c++/92024 (crash in check_local_shadow)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 30 Oct 2019 20:29:21 +0000 (20:29 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Wed, 30 Oct 2019 20:29:21 +0000 (20:29 +0000)
commite0d91792eec490d1bddb4a095a3da2c5b4c270e2
treeadb1ad05b60151a76485bafaf60afe5ee2313e06
parent6b7a9826d737254eb70ab5a600ce5f334a7f922b
re PR c++/92024 (crash in check_local_shadow)

2019-10-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * doc/invoke.texi (-Wshadow, -Wshadow=global
        -Wshadow=local, -Wshadow=compatible-local): Update documentation.

cp:
2019-10-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/92024
        * name-lookup.c (check_local_shadow): Shadowing TYPE_DECLs
        is always a -Wshadow=compatible-local warning, unless
        -Wshadow is used.

testsuite:
2019-10-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/92024
        * g++.dg/parse/crash70.C: New test.
        * c-c++-common/Wshadow-1.c: New test.

From-SVN: r277643
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wshadow-1.c [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/crash70.C [new file with mode: 0644]