https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115672
--- Comment #10 from Sean Murthy <s.murthy at outlook dot com> --- Comment on attachment 58537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58537 Repro for "dependency" where not creating A objects fixes the issue with B objects Oops, the last two lines of the code have incorrect end of line comment: a copy-paste error. static_assert(std::same_as<decltype(b2.u_), unsigned>); //passes in GCC 11.1+, correct static_assert(std::same_as<decltype(b2.u_), long>); //fails in GCC 11.1+, correct