[patch, c++] Patch for PR c++/35109
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...
Size: 5337 bytes
Desc: not available
More information about the Gcc-patches