thelink2012 / any

Implementation of std::experimental::any, including small object optimization, for C++11 compilers
Boost Software License 1.0
144 stars 37 forks source link

GCC 6 incorrectly warns about placement new #4

Closed RockinRoel closed 7 years ago

RockinRoel commented 7 years ago

When storing a type larger than the stack storage, GCC 6 appears to incorrectly warn that the stack storage is too small, even though heap allocation is used.

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

You could maybe disable this warning? That's what the person who reported the issue to us did: http://redmine.webtoolkit.eu/issues/5465