pt.c (tsubst_default_argument): Use push_to/pop_from_top_level.
authorJason Merrill <jason@redhat.com>
Fri, 15 Jun 2018 20:23:00 +0000 (16:23 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 15 Jun 2018 20:23:00 +0000 (16:23 -0400)
commitfe7a23a611df9954918f334f855935ce228c88d6
tree687801a448df6ff82ba9113374bdf6b8eece3207
parentb4cf2e42b5d30bd38b05c16365ab8e5c98f7e12a
pt.c (tsubst_default_argument): Use push_to/pop_from_top_level.

* pt.c (tsubst_default_argument): Use push_to/pop_from_top_level.

* name-lookup.c (do_pushtag): Don't look through complete types, but
don't add to them either.  Get context from current_binding_level.

From-SVN: r261656
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/crash108.C