https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84865 --- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> --- Are you sure it's an infinite loop? It looks like a null pointer dereference: 0x0000000000403f64 in std::_Any_data::_M_access (this=0x0)