r255698 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Fri Dec 15 15:05:00 GMT 2017
Author: nathan
Date: Fri Dec 15 15:04:59 2017
New Revision: 255698
URL: https://gcc.gnu.org/viewcvs?rev=255698&root=gcc&view=rev
Log:
[PR C++/59930] template friend classes & default args
https://gcc.gnu.org/ml/gcc-patches/2017-12/msg01055.html
PR c++/59930
* decl.c (xref_tag_1): Correct comments about template friends and
default args.
* friend.c (make_friend_class): Move comments concerning
self-friendliness to code dealing with such.
* pt.c (check_default_tmpl_args): Deal with template friend
classes too.
(push_template_decl_real): Check default args for non-function
template friends.
PR c++/59930
* g++.dg/cpp0x/temp_default4.C: Adjust diagnostic.
* g++.old-deja/g++.pt/friend23.C: Likewise.
* g++.old-deja/g++.pt/friend24.C: Delete.
Removed:
trunk/gcc/testsuite/g++.old-deja/g++.pt/friend24.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/friend.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/temp_default4.C
trunk/gcc/testsuite/g++.old-deja/g++.pt/friend23.C
More information about the Gcc-cvs
mailing list