[PR c++/84733] ICE in check-local-shadow
authorNathan Sidwell <nathan@acm.org>
Fri, 9 Mar 2018 12:13:55 +0000 (12:13 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 9 Mar 2018 12:13:55 +0000 (12:13 +0000)
commitd04e6ed5ae7668dc8a68069cd456d278c59fd972
treee0926d3f76b09c3b20bde7e7cfce55282fdfca45
parent77a5c1b62dad78448fedb355a22be81adf5892f7
[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.

From-SVN: r258383
gcc/cp/ChangeLog
gcc/cp/name-lookup.c