https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105846
Bug ID: 105846 Summary: constexpr unique_ptr doesn't work with virtual types Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: benni at stuerz dot xyz Target Milestone: --- I stumbled on this bug while creating my own constexpr smart pointers. This does NOT happen with clang + libstdc++! A short demonstration/explanation of the problem: https://godbolt.org/z/va4nYjhbe