[llvm-dev] include/llvm/ADT/SmallVector.h:491:7: warning: array subscript 1 is outside array bounds of ‘char [1]’ [-Warray-bounds]

Luke A. Guest via llvm-dev llvm-dev at lists.llvm.org
Sat Sep 5 04:50:54 PDT 2020


Hi,

Built llvm/clang 10.0.1 on Gentoo today and got the folowing error
building clang:

*   LLVM_BUILD_TESTS

 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * /usr/lib/llvm/10/include/llvm/ADT/SmallVector.h:491:7: warning: array
subscript 1 is outside array bounds of ‘char [1]’ [-Warray-bounds]
 * /usr/lib/llvm/10/include/llvm/ADT/SmallVector.h:491:7: warning: array
subscript 1 is outside array bounds of ‘clang::CanQualType [1]’ {aka
‘clang::CanQual<clang::Type> [1]’} [-Warray-bounds]
 * /usr/lib/llvm/10/include/llvm/ADT/SmallVector.h:491:7: warning: array
subscript 1 is outside array bounds of ‘char [1]’ [-Warray-bounds]
 * /usr/lib/llvm/10/include/llvm/ADT/SmallVector.h:491:7: warning: array
subscript 1 is outside array bounds of ‘clang::CanQualType [1]’ {aka
‘clang::CanQual<clang::Type> [1]’} [-Warray-bounds]
 * /usr/lib/llvm/10/include/llvm/ADT/SmallVector.h:491:7: warning: array
subscript 1 is outside array bounds of ‘char [1]’ [-Warray-bounds]

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: https://llvm.org/
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N
__gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R
.note.gnu.gold-version
   /usr/lib/llvm/10/bin/pp-trace
   /usr/lib/llvm/10/bin/diagtool
   /usr/lib/llvm/10/bin/clang-10
   /usr/lib/llvm/10/lib32/libclang.so.10
   /usr/lib/llvm/10/lib32/libclang-cpp.so.10


https://bugs.gentoo.org/740456


More information about the llvm-dev mailing list