https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102090
Bug ID: 102090 Summary: Placement-new is not constexpr Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: friedkeenan at protonmail dot com Target Milestone: --- When calling placement-new in a constant expression, a compiler error occurs saying that `void* operator new(std::size_t, void*)` is not constexpr; see https://godbolt.org/z/8enoG9G57 for a minimal example. As far as I can tell, the fix should just be adding constexpr to the signature.