https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480
--- Comment #12 from Paolo Carlini <paolo.carlini at oracle dot com> --- Umpf. Unfortunately this doesn't work because the second time we see rot90 duplicate_decls smashes together the first two declarations and we end up with a friend declaration which has the defaults and as such is rejected the third time we see rot90. I'll see if getting this right is doable without reworking too much duplicate_decls, for the time being I'm reverting the whole thing and adding the new testcase. Thanks.