pt.c (instantiate_class_template): Push to class's scope before tsubsting base.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 18 Aug 2003 12:44:22 +0000 (12:44 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 18 Aug 2003 12:44:22 +0000 (12:44 +0000)
commita2507277ed143a8f75f5a60f43541fc3d714aede
treeb9b8dd3cfa93329fef867add520e83622dd43de1
parent5d8725642675ddbb94dc26e8dd03b67369d47d22
pt.c (instantiate_class_template): Push to class's scope before tsubsting base.

cp:
* pt.c (instantiate_class_template): Push to class's scope before
tsubsting base.
testsuite:
* g++.dg/template/scope2.C: New test.
* g++.dg/template/error2.C: Correct dg-error

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