[PR c++/84733] ICE in check-local-shadow
commita0949cc9e8167e48a7c37db96fe47a15f9e2450c
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Mar 2018 12:13:55 +0000 (9 12:13 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Mar 2018 12:13:55 +0000 (9 12:13 +0000)
treee0926d3f76b09c3b20bde7e7cfce55282fdfca45
parentda4c4016e2a2eedbf2ea920f5a0a548825575d96
[PR c++/84733] ICE in check-local-shadow

https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00425.html
PR c++/84733
* name-lookup.c (do_pushdecl_with_scope): Only clear
current_function_decl when pushing a non-class (i.e. namespace)
scope.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258383 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c