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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
dup of PR85944

One workaround is to place the static_assert in function scope instead of
namespace scope, e.g.

void my_static_asserts() {
  static_assert(S{2}.ptr() != nullptr);
  static_assert(S{2}.p != nullptr);
}

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

Reply via email to