r219689 - in /trunk/gcc: cp/ChangeLog cp/decl.c...

jason@gcc.gnu.org jason@gcc.gnu.org
Thu Jan 15 21:02:00 GMT 2015


Author: jason
Date: Thu Jan 15 21:02:15 2015
New Revision: 219689

URL: https://gcc.gnu.org/viewcvs?rev=219689&root=gcc&view=rev
Log:
	PR c++/59366
	* name-lookup.c (pushdecl_maybe_friend_1): Hide friend functions
	and function templates, declared only in the class.
	* decl.c (duplicate_decls): Reveal hidden friend functions or
	function templates, if they are redeclared outside the class.

Added:
    trunk/gcc/testsuite/g++.dg/template/friend57.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/g++.old-deja/g++.pt/friend5.C



More information about the Gcc-cvs mailing list