How about Linux, X86-64, GCC 4.1?
Code:
#include <vector>
#include <iostream>
int main()
{
std::vector<int> v;
std::cout << "Address of first: " << &v[0] << '\n';
}
Code:
wasti@watson64 ~/forums $ g++ -D"_GLIBCXX_DEBUG=1" -o crash crash.cpp
wasti@watson64 ~/forums $ ./crash
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/debug/vector:194:
error: attempt to subscript container with out-of-bounds index 0, but
container only holds 0 elements.
Objects involved in the operation:
sequence "this" @ 0x0x7fff46e9f940 {
type = N15__gnu_debug_def6vectorIiSaIiEEE;
}
Aborted