]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/name-lookup.c
re PR c++/26102 ("using Base::member" nonsense)
authorJason Merrill <jason@gcc.gnu.org>
Wed, 6 Sep 2006 01:15:09 +0000 (21:15 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 6 Sep 2006 01:15:09 +0000 (21:15 -0400)
commitb01e6d2b91976fb7a4efd0147090f743cec7bbcf
treefc0bf5d8a95f07ff8fe2c9161eeb3812c9ecbd7b
parent6dd0d2f48454187c94e2b14cc7eaf99ced15a94d
re PR c++/26102 ("using Base::member" nonsense)

        PR c++/26102
        * name-lookup.c (do_class_using_decl): Try to find the base even
        if bases_dependent_p.
        * pt.c (type_dependent_expression_p): A USING_DECL is dependent.

        PR c++/19809
        * pt.c (tsubst_friend_function): Set DECL_INITIAL before pushdecl.

From-SVN: r116709
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/friend47.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/using14.C [new file with mode: 0644]