https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63497
--- Comment #5 from Tim Shen <timshen at gcc dot gnu.org> --- Author: timshen Date: Thu Oct 23 03:15:52 2014 New Revision: 216572 URL: https://gcc.gnu.org/viewcvs?rev=216572&root=gcc&view=rev Log: PR libstdc++/63497 include/bits/regex_executor.h (_Executor::_M_word_boundary): Remove unused parameter. include/bits/regex_executor.tcc (_Executor::_M_dfs, _Executor::_M_word_boundary): Avoid dereferecing _M_current at _M_end or other invalid position. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/regex_executor.h trunk/libstdc++-v3/include/bits/regex_executor.tcc