Avoid crash on friend in nested class template.
authorJason Merrill <jason@redhat.com>
Wed, 27 Jun 2018 17:29:51 +0000 (13:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 27 Jun 2018 17:29:51 +0000 (13:29 -0400)
commit8945521a50a7dd26ffebdee20a82e323141dfd8b
treeb87cf8b3c60804210ba30e17be4ab7cde464fd68
parent25846b50895262d38e1271bb19def833f9a63182
Avoid crash on friend in nested class template.

* name-lookup.c (do_pushtag): If we skip a class level, also skip
its template level.

From-SVN: r262188
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/g++.dg/template/friend66.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.law/visibility13.C