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

Barry Revzin <barry.revzin at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |barry.revzin at gmail dot com

--- Comment #1 from Barry Revzin <barry.revzin at gmail dot com> ---
Here's a different, C++20-specific test case:

constexpr bool f() {
    int* a = new int;
    int* b = new int;
    bool result = (a == b);
    delete a;
    delete b;
    return result;
}

static_assert(!f());

Also rejected as non-constant comparison.

Reply via email to