Open arrtchiu opened 5 years ago
Probably this https://github.com/boost-experimental/sml/issues/241#issuecomment-467998683 apply here not in issue #241
building with -DBOOST_SML_CFG_DISABLE_MIN_SIZE
fixes for me
Still true for -O1
, -O2
, -O3
, -Os
, -Oz
: compiler explorer.
REPRO
auto
orconst auto
.-O3
and run with undefined-behaviour sanitiser (UBSan).ACTUAL UBSan reports "Insufficient object size"
EXPECTED No undefined behaviour detected
NOTES:
-O0
or-O
std::function<..>
instead ofauto
.Apple LLVM 10.0.0 (clang-1000.11.45.5) / x86_64-apple-darwin-18.0.0
(Xcode 10.1 10B61); haven't tried on other machines/compilers yet.-O2
,-O3
,-Os
,-Ofast
Stack Trace:
Repro case: