[Bug c++/52465] [4.7 Regression] g++ rejects valid code with in-class using declaration

fabien at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Apr 15 20:23:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52465

--- Comment #8 from fabien at gcc dot gnu.org 2012-04-15 20:22:47 UTC ---
Author: fabien
Date: Sun Apr 15 20:22:44 2012
New Revision: 186473

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186473
Log:
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.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/lookup/using52.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/name-lookup.c
    branches/gcc-4_7-branch/gcc/cp/parser.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list