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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Oh wait there comment #0 is still invalid (undefined?) code:
```
struct I {
  int* i = new int{1};
  constexpr ~I() { delete i; }
};
static_assert([] ()consteval { return I{}.i != 0; }());
```
Works just fine.

So yes this again is the same issue of static_assert not being immediate
function context.

Reply via email to