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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|FIXED                       |---

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Martin, do you want to take a look at these cases, which your 2238909 change
didn't handle?

char gdummy = {};
constexpr int* test_global = (int*)(void*)&gdummy; // ill-formed
static_assert(test_global);

constexpr bool test_local() {
    float dummy = {};
    (int*)(void*)&dummy; // ill-formed
    return true;
}
static_assert(test_local(), "");

Reply via email to