re PR c++/30917 (ICE with friend in local class (to a function))
authorSimon Martin <simartin@users.sourceforge.net>
Sat, 28 Jul 2007 10:48:30 +0000 (10:48 +0000)
committerSimon Martin <simartin@gcc.gnu.org>
Sat, 28 Jul 2007 10:48:30 +0000 (10:48 +0000)
commitd4d8c232ede446f4b50d8c9c15a84941aabc6b18
treed4e998a6e9d7929bd216f21e2693cc4728dd487f
parentf86b898df8d043e148f3a8a34b1f539847b99138
re PR c++/30917 (ICE with friend in local class (to a function))

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.

Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r127016
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/friend11.C [new file with mode: 0644]