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

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|RESOLVED                    |REOPENED
   Last reconfirmed|                            |2025-12-09
                 CC|                            |jason at gcc dot gnu.org
         Resolution|FIXED                       |---

--- Comment #3 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
r16-5977-gcf22e30f0cfae65dd012966cab657583e2be667e broke bootstrap on some
targets and for some frontends, which I'd missed as I hadn't built those
frontends, so reopening.

The issue seems to be that DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION is
incorrectly set for 'foo' in the following sample, which means that with that
patch we were not correctly emitting it:


template <typename T> struct basic_istream;
using istream = basic_istream<char>;

template <typename T> struct basic_streambuf;
using streambuf = basic_streambuf<char>;

template <typename T> struct basic_streambuf {
  friend void foo(istream&);
};
extern template struct basic_streambuf<char>;

void foo(istream&) {}

Reply via email to