https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128873
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-11-19
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> ---
with the C++ style attribute, it also works:
```
class C {
public:
static constexpr int kAlign2 = 8;
private:
static constexpr int kAlign3 = 8;
static int s1;
};
[[gnu::aligned(C::kAlign3)]]
int C::s1 = 0;
```