OSDN Git Service

2012-04-15 Fabien Chêne <fabien@gcc.gnu.org>
authorfabien <fabien@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Apr 2012 20:22:44 +0000 (20:22 +0000)
committerfabien <fabien@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Apr 2012 20:22:44 +0000 (20:22 +0000)
commit208ee050c84d5f6674eae1883f53f6396e47d753
treee0c7c960adb14b38275893887ad737d80f6138ce
parent5f9f2aa45d0797d50e54dc3b172f1241a563448a
2012-04-15  Fabien Chêne  <fabien@gcc.gnu.org>

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

gcc/cp/ChangeLog

2012-04-15  Fabien Chêne  <fabien@gcc.gnu.org>

    PR c++/52465
    * parser.c (cp_parser_class_name): Call strip_using_decl and
    return 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@186473 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/using52.C [new file with mode: 0644]