https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84733
--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> --- Author: nathan Date: Fri Mar 9 12:13:55 2018 New Revision: 258383 URL: https://gcc.gnu.org/viewcvs?rev=258383&root=gcc&view=rev Log: [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. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/name-lookup.c