Language
C++
Compiler
gcc 7.1.0
Options
Warnings
Boost 1.64.0
C++1z(GNU)
no pedantic
Raw compiler options
-D_GLIBCXX_DEBUG
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.64.0/gcc-7.1.0/include -std=gnu++1z -D_GLIBCXX_DEBUG
/opt/wandbox/gcc-7.1.0/include/c++/7.1.0/debug/vector:417:
Error: attempt to subscript container with out-of-bounds index 2, but
container only holds 2 elements.
Objects involved in the operation:
sequence "this" @ 0x0x7fffb2940360 {
type = std::__debug::vector<int, std::allocator<int> >;
}
Signal:
Aborted