[Bug c++/62181] [C/C++] Expected new warning: "adding 'char' to a string does not append to the string" [-Wstring-plus-int]
ryxi at stu dot xidian.edu.cn
gcc-bugzilla@gcc.gnu.org
Wed Mar 15 19:03:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62181
--- Comment #8 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
(In reply to Xi Ruoyao from comment #7)
> We should make a new PR requesting for clang -Warray-bounds as well. It's
> a part of meta-bug PR30334.
Sorry. We have -Warray-bounds, but not as well as clang's. For example clang
warns for "aa"[4], but GCC doesn't.
More information about the Gcc-bugs
mailing list