// PR 99377 failed to stream locally instantiated member // link failure in function `Check(Widget const&)': // bug_c.ii:(.text._Z5CheckRK6WidgetIiE[_Z5CheckRK6WidgetIiE]+0x14): undefined reference to `Widget::Second() const' // { dg-module-do link } // { dg-additional-options -fmodule-header } // { dg-module-cmi {} } template struct Widget { Widget (int) { } bool First() const { return true; } bool Second () const { return true;} }; inline void Frob (const Widget& w) noexcept { w.First (); }