https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12944 Bug 12944 depends on bug 97988, which changed state.
Bug 97988 Summary: [C++20] Forward-declared class type declared inside requires-expression gives weird inconsistencies https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97988 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE