We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you build first example from readme with flags:
-std=c++20 -fsanitize=address -fno-rtti
And run bench test. You will get report from sanitizer about READ on zero page address.
Caused by this source line:
nanobench/src/include/nanobench.h
Line 2815 in e432789
Seems that std::locale call under -fno-rtti is triggering this problem. I found simmilar issue on stack overflow c-locale-without-rtti
Reproducible on https://godbolt.org/z/qYfMbsjG3
I didn't found in documentation that nanobench requires rtti to be running properly. And it would be nice not to get ub when rtti is disabled.
As workaround rtti can be just enabled for bench tests alone, but this can in theory affect results.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you build first example from readme with flags:
And run bench test. You will get report from sanitizer about READ on zero page address.
Caused by this source line:
nanobench/src/include/nanobench.h
Line 2815 in e432789
Seems that std::locale call under -fno-rtti is triggering this problem. I found simmilar issue on stack overflow c-locale-without-rtti
Reproducible on https://godbolt.org/z/qYfMbsjG3
I didn't found in documentation that nanobench requires rtti to be running properly. And it would be nice not to get ub when rtti is disabled.
As workaround rtti can be just enabled for bench tests alone, but this can in theory affect results.
The text was updated successfully, but these errors were encountered: