[Bug c++/92024] crash in check_local_shadow
edlinger at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 30 20:29:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92024
--- Comment #3 from Bernd Edlinger <edlinger at gcc dot gnu.org> ---
Author: edlinger
Date: Wed Oct 30 20:29:21 2019
New Revision: 277643
URL: https://gcc.gnu.org/viewcvs?rev=277643&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/c-c++-common/Wshadow-1.c
trunk/gcc/testsuite/g++.dg/parse/crash70.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list