re PR c++/9447 (using Base<T>::member does not work)
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 29 Jul 2003 11:16:50 +0000 (11:16 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 29 Jul 2003 11:16:50 +0000 (11:16 +0000)
commit399dedb996c18f40e5eb60d8707d86701b27db0e
treef933bf28ffc6e8514814d1f5e3aab7549afff83b
parent16ff3a23ffdeb49c8b0b8672bbd26bdcd06681e4
re PR c++/9447 (using Base<T>::member does not work)

cp:
PR c++/9447
* decl.c (add_binding): Add bval local variable.
(push_class_level_binding): Likewise. Allow a USING_DECL to be
pushed.
* decl2.c (do_class_using_decl):  The type of a using decl is
unknown.
* parser.c (cp_parser_postfix_expression): Refactor unqualified-id
function call lookup code.
* pt.c (tsubst): A USING_DECL will have unknown type.
(tsubst_copy_and_build): Allow a using decl.
(type_dependent_expression_p): A USING_DECL will make it
dependent.
* semantics.c (finish_member_declaration): Push a dependent using
declaration.
testsuite:
PR c++/9447
* g++.dg/template/using1.C: New test.
* g++.dg/template/using2.C: New test.
* g++.dg/template/using3.C: New test.
* g++.dg/template/using4.C: New test.

From-SVN: r69921
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/using1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/using2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/using3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/using4.C [new file with mode: 0644]