[Bug c++/86881] [8, 9 regression] tree check fail with flag Wshadow-compatible-local

2018-09-20 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881

--- Comment #8 from Christophe Lyon  ---
(In reply to Nathan Sidwell from comment #7)
> Thanks Christophe, I noticed that when checking the 8 backport and committed
> a fix, so updating should make it work.

Indeed it works since r264394.
Thanks!

[Bug c++/86881] [8, 9 regression] tree check fail with flag Wshadow-compatible-local

2018-09-19 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881

--- Comment #7 from Nathan Sidwell  ---
Thanks Christophe, I noticed that when checking the 8 backport and committed a
fix, so updating should make it work.

[Bug c++/86881] [8, 9 regression] tree check fail with flag Wshadow-compatible-local

2018-09-18 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881

Christophe Lyon  changed:

   What|Removed |Added

 CC||clyon at gcc dot gnu.org

--- Comment #6 from Christophe Lyon  ---
I see an error in the new testcase:
g++.dg/warn/pr86881.C  -std=c++11: syntax error in target selector "c++11" for
" dg-do 2 compile { c++11 } "

[Bug c++/86881] [8, 9 regression] tree check fail with flag Wshadow-compatible-local

2018-09-18 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881

Nathan Sidwell  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Nathan Sidwell  ---
Fixed trunk r264391.
Fixed gcc-8 r264396.

[Bug c++/86881] [8, 9 regression] tree check fail with flag Wshadow-compatible-local

2018-09-18 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881

--- Comment #4 from Nathan Sidwell  ---
Author: nathan
Date: Tue Sep 18 15:06:35 2018
New Revision: 264396

URL: https://gcc.gnu.org/viewcvs?rev=264396=gcc=rev
Log:
[PATCH c++/86881] -Wshadow-local-compatible ICE

https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00984.html
PR c++/86881
cp/
* name-lookup.c (check_local_shadow): Ignore auto types.

testsuite/
* g++.dg/warn/pr86881.C: New.

Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/warn/pr86881.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/name-lookup.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug c++/86881] [8, 9 regression] tree check fail with flag Wshadow-compatible-local

2018-09-18 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881

--- Comment #3 from Nathan Sidwell  ---
Author: nathan
Date: Tue Sep 18 13:52:30 2018
New Revision: 264391

URL: https://gcc.gnu.org/viewcvs?rev=264391=gcc=rev
Log:
[PATCH c++/86881] -Wshadow-local-compatible ICE

https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00984.html
PR c++/86881
cp/
* name-lookup.c (check_local_shadow): Ignore auto types.

testsuite/
* g++.dg/warn/pr86881.C: New.

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