https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 115757, which changed state.
Bug 115757 Summary: [modules] maybe_unused attributes not honored in member function of imported class template https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115757 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED