]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: remove friend_attributes
authorJason Merrill <jason@redhat.com>
Fri, 28 Oct 2022 15:26:05 +0000 (11:26 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 28 Oct 2022 20:36:01 +0000 (16:36 -0400)
commit51c5fc25b37ae493787bcecba64c449896a066cd
tree7ad4d3f3fa050f4b1e5769276de898c6f3a0c741
parent6f047a4540277fe70d0fe73b2e2db24659093ec5
c++: remove friend_attributes

Instead of the friend_attributes hack, we can apply friend attributes before
calling do_friend.

gcc/cp/ChangeLog:

* decl.cc (friend_attributes): Remove.
(duplicate_contracts): Adjust.
(duplicate_decls): Adjust.
(grokdeclarator): Call cplus_decl_attributes before do_friend.
gcc/cp/decl.cc