[PR C++/59930] template friend classes & default args
authorNathan Sidwell <nathan@acm.org>
Fri, 15 Dec 2017 15:04:59 +0000 (15:04 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 15 Dec 2017 15:04:59 +0000 (15:04 +0000)
commit0cf4820dd596a5884fb59c2c9874ed100a7ff614
tree599aa3e7811f0d64352939a93b471f1440562272
parente7425c18b5af5a12f68bde8b5f30adf02a774536
[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.

From-SVN: r255698
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/friend.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/temp_default4.C
gcc/testsuite/g++.old-deja/g++.pt/friend23.C
gcc/testsuite/g++.old-deja/g++.pt/friend24.C [deleted file]