pt.c (push_access_scope_real): Call push_to_top_level for function in namespace scope.
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Thu, 9 Jan 2003 13:55:46 +0000 (13:55 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Thu, 9 Jan 2003 13:55:46 +0000 (13:55 +0000)
commit0f399e5f9b8b238932eeaba618f6baefd7bdd36c
tree61ec05e405f79cba389afca5e3e35514896a3ce6
parentc456a45a19096f2671694f3254fb4fad1dac17c7
pt.c (push_access_scope_real): Call push_to_top_level for function in namespace scope.

* pt.c (push_access_scope_real): Call push_to_top_level for
function in namespace scope.
(pop_access_scope): Call pop_from_top_level for function in
namespace scope.

* g++.dg/template/friend14.C: New test.

From-SVN: r61114
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend14.C [new file with mode: 0644]