re PR c++/52465 (g++ rejects valid code with in-class using declaration)
authorFabien Chêne <fabien@gcc.gnu.org>
Wed, 11 Apr 2012 20:40:51 +0000 (22:40 +0200)
committerFabien Chêne <fabien@gcc.gnu.org>
Wed, 11 Apr 2012 20:40:51 +0000 (22:40 +0200)
commitaf79925b5f99540716216ad419a7e312069079bd
tree43bf3c0280ad712e2711bc7271d35ca78f32ee7a
parent6cc5558fe8380697c0274c905dc49637e1df0dcd
re PR c++/52465 (g++ rejects valid code with in-class using declaration)

gcc/testsuite/ChangeLog

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

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

gcc/cp/ChangeLog

2012-04-09  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.

From-SVN: r186355
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]