[C++ PATCH for 3.4] Fix PR19258 (incorrect scope for friend defined in-class)

Mark Mitchell mark@codesourcery.com
Tue Jan 18 20:27:00 GMT 2005


Kriang Lerdsuwanakij wrote:
> Hi
> 
> This patch fixes PR19258 for 3.4 branch.  The only difference
> to the mainline (committed) version at:
> 
>   http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00271.html
> 
> is that we need to check DECL_FRIEND_CONTEXT in
> cp_parser_late_parsing_default_args as well.  The mainline doesn't
> need this because the push/pop_nested_class calls were done once
> elsewhere with the correct scope rather than calling here for
> every default argument processed.
> 
> Tested on i686-pc-linux-gnu.  OK for the mainline?

OK.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Gcc-patches mailing list