https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105995
--- Comment #2 from Jiang An <de34 at live dot cn> --- (In reply to Andrew Pinski from comment #1) > C++20 supports dynamic allocation for constexpr. Yeah, but a constexpr variable can't hold dynamically allocated memory. Dynamically allocated memory must be deallocated within its initialization.