https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125587
Waffl3x <waffl3x at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |waffl3x at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Keywords| |c++-contracts, c++26,
| |rejects-valid
Ever confirmed|0 |1
Last reconfirmed| |2026-08-26
--- Comment #1 from Waffl3x <waffl3x at gcc dot gnu.org> ---
I thought I saw this elsewhere, but I couldn't find it.
Confirmed.
```
constexpr int f(int i)
post(res: res > 0)
{
return i;
}
static constexpr int v = f(42);
```