]> git.ipfire.org Git - people/ms/gcc.git/commit
c++: apply friend attributes sooner
authorJason Merrill <jason@redhat.com>
Fri, 28 Oct 2022 14:45:06 +0000 (10:45 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 28 Oct 2022 15:15:35 +0000 (11:15 -0400)
commit38a628f52cf0ff5db6708578248484d50a50b366
tree57ec86ab5641f1b8d07b22bf0280d06e8d3c8a9f
parent4fe34cdcc80ac225b80670eabc38ac5e31ce8a5a
c++: apply friend attributes sooner

Comparing attributes between declarations of a friend function has been
complicated by pushdecl happening before decl_attributes.  I assumed there
was some complicated reason we weren't calling decl_attributes here, but it
doesn't break anything.

gcc/cp/ChangeLog:

* decl.cc (grokdeclarator): Call decl_attributes before do_friend.
gcc/cp/decl.cc