[PR c++/85634] Fix tsubst ICE

https://gcc.gnu.org/ml/gcc-patches/2018-06/msg01274.html
	PR c++/85634
	* friend.c (add_friend): Keep lookup sets of tempate sets.

	PR c++/85634
	* g++.dg/lookup/pr85634-2.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261817 138bc75d-0d04-0410-961f-82ee72b054a4
4 files changed