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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Looks like a dup of PR 85944 since it only happens at global scope. The same
static_assert works fine in a function:

void f()
{
static_assert(p - q != 0);
}

*** This bug has been marked as a duplicate of bug 85944 ***

Reply via email to