diff options
author | Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> | 2005-03-14 14:51:25 +0000 |
---|---|---|
committer | Kriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org> | 2005-03-14 14:51:25 +0000 |
commit | 5a24482e72fb06ef2e93050cdb056002f99bb226 (patch) | |
tree | ebe96dca1d08f5e123696a21d05cb1a03baaae0f /gcc/c-common.c | |
parent | 184107932d56261a7786e3086212cfa32db6acd0 (diff) | |
download | gcc-5a24482e72fb06ef2e93050cdb056002f99bb226.zip gcc-5a24482e72fb06ef2e93050cdb056002f99bb226.tar.gz gcc-5a24482e72fb06ef2e93050cdb056002f99bb226.tar.bz2 |
re PR c++/4403 (incorrect class becomes a friend in template)
PR c++/4403
PR c++/9783, DR433
* name-lookup.c (pushtag): Skip template parameter scope when
scope is ts_global. Don't push tag into template parameter
scope.
* pt.c (instantiate_class_template): Reorder friend class
template substitution to handle non-dependent friend class
that hasn't been previously declared.
* g++.dg/template/friend34.C: New test.
* g++.dg/template/friend35.C: Likewise.
* g++.old-deja/g++.pt/inherit2.C: Remove XFAIL's.
From-SVN: r96432
Diffstat (limited to 'gcc/c-common.c')
0 files changed, 0 insertions, 0 deletions