https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121402
Bug ID: 121402 Summary: repeat_view and [[no_unique_address]] Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: barry.revzin at gmail dot com Target Milestone: --- Currently, given a simple struct Empty { }, sizeof(repeat_view<Empty, size_t>) == 16. It could just be 8. __box<T>'s member is already marked [[no_unique_address]], it just needs to be marked in repeat_view too.