https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69877 --- Comment #1 from Leo Carreon <lcarreon at bigpond dot net.au> --- In addition, if I comment out the line: vStream.exceptions(std::ios_base::badbit); The executable does not core dump.