This is the mail archive of the gcc-bugs@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]

[Bug c++/59930] template friend declarations, namespaces, and explicit instantiations don't mix


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59930

--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
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

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