[Bug c++/30917] [4.1/4.2/4.3 Regression] ICE with friend in local class (to a function)

simartin at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Jul 28 10:48:00 GMT 2007



------- Comment #6 from simartin at gcc dot gnu dot org  2007-07-28 10:48 -------
Subject: Bug 30917

Author: simartin
Date: Sat Jul 28 10:48:30 2007
New Revision: 127016

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127016
Log:
gcc/cp/

2007-07-28  Simon Martin  <simartin@users.sourceforge.net>
            Mark Mitchell  <mark@codesourcery.com>

        PR c++/30917
        * name-lookup.c (lookup_name_real): Non namespace-scope bindings can be
        hidden due to friend declarations in local classes.

gcc/testsuite/

2007-07-28  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/30917
        * g++.dg/lookup/friend11.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/lookup/friend11.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list