public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fabien at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/52465] [4.7 Regression] g++ rejects valid code with in-class using declaration
Date: Sun, 15 Apr 2012 20:23:00 -0000	[thread overview]
Message-ID: <bug-52465-4-Xue1U6rhKF@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52465-4@http.gcc.gnu.org/bugzilla/>

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


  parent reply	other threads:[~2012-04-15 20:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-03  9:52 [Bug c++/52465] New: " vanboxem.ruben at gmail dot com
2012-03-03 10:10 ` [Bug c++/52465] " jakub at gcc dot gnu.org
2012-03-03 22:31 ` [Bug c++/52465] [4.7 regression] " jason at gcc dot gnu.org
2012-03-04 18:42 ` fabien at gcc dot gnu.org
2012-03-04 21:52 ` fabien at gcc dot gnu.org
2012-03-08 20:41 ` fabien at gcc dot gnu.org
2012-04-05 10:53 ` [Bug c++/52465] [4.7/4.8 " rguenth at gcc dot gnu.org
2012-04-11 20:41 ` fabien at gcc dot gnu.org
2012-04-13 12:57 ` [Bug c++/52465] [4.7 Regression] " rguenth at gcc dot gnu.org
2012-04-15 20:23 ` fabien at gcc dot gnu.org [this message]
2012-04-15 20:25 ` fabien at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-52465-4-Xue1U6rhKF@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).