This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH for 3.4] Fix PR19258 (incorrect scope for friend definedin-class)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]