Hi,

In the end, I think we need again to strip some USING_DECLs in a
couple of places. Tested x86_64-unknown-linux-gnu. OK to commit (for
whatever appropriate) ?

gcc/testsuite/ChangeLog

2012-03-08  Fabien Chêne  <fab...@gcc.gnu.org>

        PR c++/52465
        * g++.dg/lookup/using52.C: New.

gcc/cp/ChangeLog

2012-03-08  Fabien Chêne  <fab...@gcc.gnu.org>

        PR c++/52465
        * decl.c (grokdeclarator): Call strip_using_decl.
        * parser.c (cp_parser_class_name): Call strip_using_decl and
        perform some checks on the target decl.
        * name-lookup.c (strip_using_decl): Returns NULL_TREE if the decl
        to be stripped is NULL_TREE.
        (qualify_lookup): Call strip_using_decl and perform some checks on
        the target decl.

-- 
Fabien

Attachment: pr52465.patch
Description: Binary data

Reply via email to