https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116529
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- I opened https://cplusplus.github.io/LWG/issue4144 for the unique_ptr<T&,D> case and https://cplusplus.github.io/LWG/issue4148 for the dangling reference case.