Implement using decls inside template functions.
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 1 Mar 2001 14:01:39 +0000 (14:01 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 1 Mar 2001 14:01:39 +0000 (14:01 +0000)
commitfbfe8c9e5ab2168a5776947525909c485afe39f3
treea3ac89d597d4b0217d02828d183a010e6bea8ec0
parent4d24a8896575dfb50d733d1213dbe00bb6df3ab3
Implement using decls inside template functions.

cp:
Implement using decls inside template functions.
* decl2.c (validate_nonmember_using_decl): Don't special case
fake_std_node in the global namespace. Don't reject early when
processing a template.
(do_local_using_decl): Add to statement tree. Don't do further
processing when building a template.
* pt.c (tsubst_expr, DECL_STMT case): Deal with USING_DECLs.
testsuite:
* g++.old-deja/g++.pt/using1.C: New test.

From-SVN: r40151
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/using1.C [new file with mode: 0644]