https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64475
--- Comment #4 from Tim Shen <timshen at gcc dot gnu.org> --- Author: timshen Date: Fri Jan 2 22:33:04 2015 New Revision: 219151 URL: https://gcc.gnu.org/viewcvs?rev=219151&root=gcc&view=rev Log: PR libstdc++/64475 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the iterator, since the original one shouldn't be mutated. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/regex_executor.tcc