https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91369

Toni Neubert <lutztonineubert at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lutztonineubert at gmail dot 
com

--- Comment #21 from Toni Neubert <lutztonineubert at gmail dot com> ---
I get: 'allocated storage has not been deallocated' when using
prvalues/xvalues:

struct A {
    constexpr A() : p{new int} {}
    constexpr ~A() {
        delete p;
    }
    int* p;
};

constexpr bool test() {
    A{};
    return true;
}

constexpr auto res = test();
static_assert(res);

Reply via email to