[Bug c++/70690] [6/7 Regression] r235002 miscompiles tcmalloc
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 18 14:43:00 GMT 2016
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];
More information about the Gcc-bugs
mailing list