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

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 Release % cat static_vars.ii
class CentralFreeList {
 public:
  CentralFreeList() {}
};

template <int size>
class CentralFreeListPaddedTo : public CentralFreeList {
 private:
  char pad_[64 - size];
};

class CentralFreeListPadded
    : public CentralFreeListPaddedTo<sizeof(CentralFreeList) % 64> {};

class Static {
 public:
  static CentralFreeListPadded central_cache_[50];
};

CentralFreeListPadded Static::central_cache_[50];

Reply via email to