diff --git a/include/boost/regex/v4/basic_regex_creator.hpp b/include/boost/regex/v4/basic_regex_creator.hpp index 3e7b79a0..c3b93e63 100644 --- a/include/boost/regex/v4/basic_regex_creator.hpp +++ b/include/boost/regex/v4/basic_regex_creator.hpp @@ -1065,6 +1065,8 @@ void basic_regex_creator::create_startmap(re_syntax_base* state, if(is_bad_repeat(state)) { set_all_masks(l_map, mask); + if(pnull) + *pnull |= mask; return; } set_bad_repeat(state);