[patch, c++] Patch for PR c++/35109

Jason Merrill jason@redhat.com
Tue Jan 13 02:06:00 GMT 2009

I'm applying this patch.  While looking for a valid testcase that would 
hit this assert, I noticed that returning NULL_TREE in this case is 
wrong; a hidden declaration shouldn't hide other declarations, we should 
keep looking at outer scopes.  Contrary to the discussion on the patch 
for 30917, the time we only look at the innermost enclosing scope is for 
determining what the friend declaration is referring to, it doesn't 
affect further uses of the name.

Tested x86_64-pc-linux-gnu, applied to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 35109.patch
Type: text/x-patch
Size: 5337 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090113/6df90d74/attachment.bin>

More information about the Gcc-patches mailing list