-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
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
stringop-overflow warning in 8.1.1 on g++ (GCC) 10.2.1 20200804 #2708
Comments
Please provide a repro (preferably on godbolt). |
A simple /opt/rh/devtoolset-10/root/usr/bin/c++ -DFMT_LOCALE -I/local/1/home/build/gcc/_deps/fmt-src/include -g -march=native -fno-var-tracking-assignments -Werror -Wall -Wextra -Wpedantic -Wshadow -Wnon-virtual-dtor -Wold-style-cast -Wunused -Woverloaded-virtual -Wdouble-promotion -O3 -DNDEBUG -std=c++2a -o CMakeFiles/fmt_test.dir/fmt.cpp.o -c /local/1/home/source/bin/fmt.cpp |
This is a bug in GCC: #2442 (comment) |
Ah ok :/. Is there a known workaround when using fmt that doesn't involve globally disabling this warning for the project including fmt? |
You can set the |
- FMT will trigger a gcc bug on stringop-overflow with gcc versions 11 and earlier - FMT issue fmtlib/fmt#2442 - FMT issue fmtlib/fmt#2708 - GCC bug tracker https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101854 - Confirming it still appears on gcc-11 https://godbolt.org/z/d15q4Exvz
- FMT will trigger a gcc bug on stringop-overflow with gcc versions 11 and earlier - FMT issue fmtlib/fmt#2442 - FMT issue fmtlib/fmt#2708 - GCC bug tracker https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101854 - Confirming it still appears on gcc-11 https://godbolt.org/z/d15q4Exvz
- FMT will trigger a gcc bug on stringop-overflow with gcc versions 11 and earlier - FMT issue fmtlib/fmt#2442 - FMT issue fmtlib/fmt#2708 - GCC bug tracker https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101854 - Confirming it still appears on gcc-11 https://godbolt.org/z/d15q4Exvz
- FMT will trigger a gcc bug on stringop-overflow with gcc versions 11 and earlier - FMT issue fmtlib/fmt#2442 - FMT issue fmtlib/fmt#2708 - GCC bug tracker https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101854 - Confirming it still appears on gcc-11 https://godbolt.org/z/d15q4Exvz
- FMT will trigger a gcc bug on stringop-overflow with gcc versions 11 and earlier - FMT issue fmtlib/fmt#2442 - FMT issue fmtlib/fmt#2708 - GCC bug tracker https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101854 - Confirming it still appears on gcc-11 https://godbolt.org/z/d15q4Exvz
The false positive has been worked around in 7f157dc. |
The text was updated successfully, but these errors were encountered: